This would be pretty easy to do with Nokogiri and a block helper. On Wed, Dec 1, 2010 at 11:12 AM, Nathan Weizenbaum <nex...@gmail.com> 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 <qot.behe...@gmail.com> wrote: > >> 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 >> >> <span class='prefix_example' id 'another_prefix_some_id'></span> >> >> I'd appreciate any help on this. >> >> Regards, >> Peter >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Haml" group. >> To post to this group, send email to h...@googlegroups.com. >> To unsubscribe from this group, send email to >> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. >> For more options, visit this group at >> http://groups.google.com/group/haml?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.