>
> That being said, I would ask to the collective wisdom of the group:
>
> 1. would proxy defined as explained in the cookboock work in templates?
>
Technically, you can always do "<%= $c->my_helper_prefix->foo('bar') %>".
> 2. is this the recommended way to organize helpers in 'namespaces'?
>
There is none, template helpers are meant to be short.
>
> An explication of the rationale behind the decision of allowing
> "nested" helpers only in controllers would also be interesting to
> read.
>
Most helpers are used as functions in templates (like "<%= url_for 'foo'
%>"),
but helpers with prefix require a method call, which doesn't look as nice in
comparison ("<%= my_prefix->url_for('foo') %>") and is no better than
"<%= $c->my_prefix->url_for('foo') %>". And of course it's consistent with
stash value prefixes.
--
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.