With things like FastCGI where 5 instances of nitro are spawned, memory sessions (the default) just don't work. (If you don't need 5 instances, try setting the min and max spawns to 1. Otherwise read o
request.post? (available in context) return true if the request method is POST. :)
Want a little dynamism in your elements? You can pass stuff to the element in the element's tag:
Some Content
Now, to make
Fed up of ctrl-Cing webrick everytime you edit a Element template? Well, no more!
Simply define a controller method to do it for you:
def recompile Nitro::Element.compile
Like to see an object in an easy to read format?
Add #{debug variable} to your view for a YAML dump of an object.
Is your nitro app slow?
Set it than to production mode!
Add the following line before starting nitro into your run.rb:
Nitro::Runner.mode = :live
Also run it an other webserver than webrick