is possible to generate an HTML page using Ruby on Rails framework without using a webserver? I want do something like this:
html = RailsHTMLGenerator.generate('path/to/rails/root', '/posts/540')
puts html
The first parameter is the Rails.root
, the second is the HTTP path, and the function return the HTML of that page as string.
Someone can tell me how to do this? Ty.