haml to erb conversion?

40 views
Skip to first unread message

shaners

unread,
May 20, 2007, 4:53:58 PM5/20/07
to Haml
i'm redesigning RDoc. i'd like to work in haml, but b/c rdoc is in the
ruby core that means that haml would have to be in the core too. which
isn't gonna / shouldn't happen. that's fine. but i'd like to develop
in haml on my end at least then convert to erb templates.

anyone know of something for this? or anyone wanna write one?

thanks
shaners

Nathan Weizenbaum

unread,
May 20, 2007, 5:06:12 PM5/20/07
to ha...@googlegroups.com
It should definitely be possible to tweak the Haml engine so that
instead of evaluating Ruby code when using "=" and "-" it just adds in
corresponding ERB tags. In fact, I bet you could implement it as a
preprocessor over the Haml file.

- Nathan

Reply all
Reply to author
Forward
0 new messages