helpers do def partial(name, options={}) haml(name, options.merge(:layout => false)) end end
Then, in your template, the following would render “my_partial.haml” inline:
= partial(:my_partial)
© 2007 Blake Mizerany | powered by git-wiki which is powered by Sinatra and git