Re: [haml] How to prefix ALL html elements' ids and classes?

2010-12-01 Thread Chris Eppstein
This would be pretty easy to do with Nokogiri and a block helper. On Wed, Dec 1, 2010 at 11:12 AM, Nathan Weizenbaum wrote: > There's no easy way to do this. You'd need to either modify some internal > Haml code or post-process your HTML. > > > On Wed, Dec 1, 2010 at 1:36 AM, Kot Behemot wrote:

Re: [haml] How to prefix ALL html elements' ids and classes?

2010-12-01 Thread Nathan Weizenbaum
There's no easy way to do this. You'd need to either modify some internal Haml code or post-process your HTML. On Wed, Dec 1, 2010 at 1:36 AM, Kot Behemot wrote: > Is there a simple and DRY way to prefix every 'class' and 'id' > attribute in the haml output? > > So that the following syntax: > >

[haml] How to prefix ALL html elements' ids and classes?

2010-12-01 Thread Kot Behemot
Is there a simple and DRY way to prefix every 'class' and 'id' attribute in the haml output? So that the following syntax: %span.exaple#some_id will produce I'd appreciate any help on this. Regards, Peter -- You received this message because you are subscribed to the Google Groups "Haml"