There is another problem, -# require all text under it to conform to haml (two spaces indentation), so, it's not usefull at all for commenting out html which is still not converted.
On Jan 12, 7:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, I was trying to use -# instead of patching haml and adding nothing > filter. > > It worked for couple of files but it is not satisfactory solution. > > Problem is that -# doesn't really work like nothing filter. It does, > until you come to first empty line in old html you didn't converted > yet. Then everything explodes. > > This thread is month old so let me recapitulate. > > you have big html file you want to convert: > ------------------------------- > <div>something > something else</div> > > and then<b>bold</b> > > <span>another html</span> > > more html.... > > more html ... > > ------------------------------- > Now, obviously converting all of it is quite a job, so let's go > gradually: > ------------------------------- > %divsomething > something else > > :nothing > and then<b>bold</b> > > <span>another html</span> > > more html.... > > more html ... > > ------------------------------- > So, I simply converted first few lines, and added nothing filter > before unconverted text. Now I can try to render it and see how it > goes. > Then I can gradually, convert the rest. > > So, Nathans idea was to use -# instead,and I wasn't aware of it: > ------------------------------- > %divsomething > something else > > -# > and then<b>bold</b> > > <span>another html</span> > > more html.... > > more html ... > > ------------------------------- > OK, in any good editor, you can easily select text and movie it two > spaces right, but this doesn't solve problem, because those empty > lines will turn off -# and start haml filter again and produce error. > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
