Thanks a lot, I like haml very much but this is the requirement. One creating template engine that will use xpath to update html content. So, designer create plain html: <title>title will be here</title>
and programmer: head > title: = @title Best regards, Eduard On Oct 8, 8:01 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 10/8/07, edbond <[EMAIL PROTECTED]> wrote: > > > > > Is there anywhere haml2html tool? > > I don't think I've ever heard of such script existing. That means you must > roll it out yourself, shouldn't be too hard. > > All you have to do is hack Haml::Engine processing to output erb instead of > eval-ing Ruby code. So, this code: > > %ul > - for item in @items > %li= item > > should become: > > <ul> > <% for item in @items %> > <li><%= item %></li> > <% end %> > </ul> > > So you see, Haml::Engine should do what it does now, except that it won't > execute Ruby code but output it encapsulated in <% code %>. The hard part > will be injecting <% end %> at appropriate places, though. > > Our client requested to convert haml to erb to ease work of designer. > > Any designer who understands rhtml can easily grok Haml. Maybe the designer > can work with static HTML which later gets translated with html2haml and > adapted to views? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
