Given that you're not using Haml with a framework, that's probably the best way. Once you get a lot of helpers it'd probably be a good idea to extract them into a module and include it in.
On Wed, Jan 13, 2010 at 10:12 AM, Phrogz <[email protected]> wrote: > On Jan 11, 11:30 pm, Nathan Weizenbaum <[email protected]> wrote: > > On Mon, Jan 11, 2010 at 9:26 PM, Phrogz <[email protected]> wrote: > > > This is working well. The only oddity is that I'm initializing the > > > Haml template with :ugly=>true, but the produced HTML—just for this > > > helper—is being indented and nested nicely. Do helpers using haml_tag > > > not honor the :ugly setting? > > That's true. It's probably a little less efficient that way - feel free > to > > file an issue on the bug tracker (http://github.com/nex3/haml/issues) > and > > I'll try to get around to fixing it soon. > > So created as http://github.com/nex3/haml/issues/#issue/76 > > Is what I've done (re-opening Haml::Helpers and jamming my own method > in there) the recommended way to create a helper for use in my > templates? > > -- > 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.
