This is an interesting idea. The code probably couldn't be re-used from the
engine - that's too wrapped up in parsing the attributes and so forth as
well - but if someone wanted to write a patch to add it in, I'd accept it.

On Wed, Dec 9, 2009 at 6:53 AM, seb <[email protected]> wrote:

> I use haml_tag quite often, and compared to HAML templates it's
> annoying to write:
>
> haml_tag :div, :id => 'post', :class => 'large'
>
> instead of the much simpler
>
> haml_tag "div#post.large"
>
> Does anyone have any suggestions on how to implement this. I'm sure
> parsing "div#post.large" is already implemented somewhere, but where?
>
> --
>
> 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