Bringing this up on the mailing-list in this early stage is a bit unusual,
but the core team is currently divided on this feature. So maybe some
feedback from the community would help us decide about its future.
https://github.com/kraih/mojo/compare/nested_helpers
This branch contains a proposal for nested helpers, the idea is to allow
you to organize your helpers into different namespaces.
helper 'foo.bar' => sub {...};
The dot serves as namespace separator, and "foo" becomes a helper that
returns a proxy object on which you can call all the nested helpers.
$c->foo->bar(...)
These nested helpers work exactly like normal helpers with the only
limitation that they will not be imported into templates, since begin/end
blocks wouldn't work with them, but they can be called like <%=
$c->foo->bar %>.
What do you think?
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.