recursive(?) HAML

27 views
Skip to first unread message

and...@research.att.com

unread,
Dec 8, 2013, 6:49:46 PM12/8/13
to ha...@googlegroups.com
i'm using HAML within Sinatra.

normally i would do something like
get /foo do
  haml :foobar
end

and views/foobar.haml would get expanded inside the expansion of views/layout.haml

what i want to do is inside either foobar.haml or layout.haml is generate the HAML
input with Ruby code, rather than writing it to a static file. how do i get haml to reprocess
what that code produces?
Reply all
Reply to author
Forward
0 new messages