I believe the answer of every guru will be - "Use a helper!"

That would give you syntax that is more consistent with everything
else haml, and will probably look something like this :
    - partial :question_one, { :var1 => 'var1' }
Or whatever else you want it to look like.

I for one would not want Haml to be too extendable, with custom tags
for example.

On 7/22/07, Vlad Rafeyev <[EMAIL PROTECTED]> wrote:
>
> Hello, kind HAML gurus and developers!
>
> I use this code very often:
>
> = render :partial => "question_one", :locals => {:var1 => "var1"}
>
> But what if I want to use my own type of HAML tags? For example like
> this:
>
> _question_one{:var1 => "var1"}
>
> Is it possible to add new types of tags? If so, how?
>
> Thank you!
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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