On Mon, Dec 7, 2009 at 12:28 PM, botanicus <[email protected]> wrote:

>
> I created a patch which get me the chance to have default attributes
> for a tag, so if I specify Haml::Engine.new(template,
> default_attributes: {script: {type: "text/javascript"}, form:
> {:method: "POST"}}, then all the script tags will have type="text/
> javascript" and all the forms will have method="POST".
>
> I sent a pull request, however nex3's opinion is that it might lead to
> feature bloat in Haml and he recommend me to ask Haml community. So
> I'd like to know your opinion, if you think it is good idea or now and
> why.
>
>
Perhaps I'm missing something, but can't you accomplish the same thing by
defining the script tag as a Haml helper?

http://haml-lang.com/docs/yardoc/Haml/Helpers.html#haml_tag-instance_method

--Norman

--

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