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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected] <haml%[email protected]>.
> 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 [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.

Reply via email to