On Fri, Nov 20, 2009 at 19:24, Tal <[email protected]> wrote:

> I'm wanting to make helpers and I've come across open_tag in a few
> places. I can't figure out where it's used though.


If you really meant `open_tag` and not `haml_tag`, I don't see how you could
have seen it in places other than internal Haml code, because it's part of a
private Haml::Buffer API. In fact, I can only find its definition but not
where it's called from:

    def open_tag(name, self_closing, try_one_line, preserve_tag,
escape_html, class_id,
                 nuke_outer_whitespace, nuke_inner_whitespace, obj_ref,
content, *attributes_hashes)
      ...
    end

Nice attribute list :)

Anyway, regardless of whether this method is actually used internally or
not, you should not use it. `haml_tag` is a pretty good option for view
helpers and it's used like Hampton described in his reply.

--

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=.


Reply via email to