On 01/08/2014 10:54 PM, Sebastian Riedel wrote:
1) ... 2) ... 3) ...
That's all one use case really, and i'm not even sure it's a valid one. If
someone else has an opinion on this i'd like to hear it.
I think I had that before_render hook idea a long, long time ago and I
think it even was part of Mojolicious for about 2 releases before it was
removed again. On the use case described though, you could just as well
have the logic inside your action, then use $self->render_partial to
render the bits you need, and finally pass all that off to one template
that basically includes the rest - or just concatenate it into
$self->res->body. I think currently my only use case for a before_render
hook is to have a chance to get some timing values before the render
phase starts.
Just my 2 cents, I'm ambivalent on whether or not it's added :)
--
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/groups/opt_out.