Embedded Perl (ep) nested templated including

180 views
Skip to first unread message

Spiros Denaxas

unread,
Oct 16, 2012, 9:03:21 AM10/16/12
to mojol...@googlegroups.com
is there a way to perform nested template includes such as in Mason:

<& doctype.mason &>
<html>
<& head.mason &>
<body>
<& footer.mason &>
</body>
</html


Gabriel Vieira

unread,
Oct 16, 2012, 9:05:40 AM10/16/12
to mojol...@googlegroups.com
% include 'template'
<% include 'template' %>

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mojolicious/-/aplAFOwNCp8J.
To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.



--
Gabriel Vieira

Spiros Denaxas

unread,
Oct 16, 2012, 9:15:31 AM10/16/12
to mojol...@googlegroups.com
Thank you however this is giving me a syntax error warning when used in the layout file - does this only work within normal templates?

Gabriel Vieira

unread,
Oct 16, 2012, 9:21:53 AM10/16/12
to mojol...@googlegroups.com
Sorry, I forgot the equal sign.

To view this discussion on the web visit https://groups.google.com/d/msg/mojolicious/-/J4D_HdlKG0MJ.

To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.



--
Gabriel Vieira

Spiros Denaxas

unread,
Oct 16, 2012, 9:59:40 AM10/16/12
to mojol...@googlegroups.com
Thank you - worked fine.

Spiros
Reply all
Reply to author
Forward
0 new messages