I have a template and it sets the title:

@@ template.html.ep
% title 'TITLE HERE';

And then I extend it:

@@ extension.html.ep
% extends 'template';

It seems reasonable to me that I should be able to set the title in
*extension* with `% title 'NEW TITLE';` but I cannot; the title that sticks
is the one in *template*.  It seems reasonable to me because I can set a
default content block in *template* that gets overridden by *extension*, so
why not be able to override the title?

Am I expecting unreasonable things of 'extends', i.e. am I misusing /
abusing 'extends' per its intended purpose?  Is the best / only way to
handle this to set the title in the Controller?

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

Reply via email to