Mercurial > pub > site.implab
view shared_view/layout/default.tt @ 13:a9ce584a7f3b
test for mercurial repositories
author | sergey |
---|---|
date | Mon, 19 May 2014 04:34:28 +0400 |
parents | 7d92a42f8e18 |
children |
line wrap: on
line source
[% document.css = []; document.scripts = []; document.meta = []; document.class = []; document.postRender = []; render('init',model = model); %] [% BLOCK PAGE_LAYOUT %] <!DOCTYPE html> <html> <head> <title>[% site.name ? "$site.name - $document.title" : document.title %]</title> [% FOREACH item IN document.css %] <link rel="stylesheet" href="$item" type="text/css"> [% END %] [% FOREACH item IN document.scripts +%] <script type="[% item.type || 'text/javascript' %]"[% ' src="' _ item.src _ '"' IF item.src %]> [% item.text %] </script> [% END %] [% FOREACH item IN document.meta +%] <meta [% FOREACH pair IN item %]$pair.key = "[% pair.value | html_entity %]" [% END %]> [% END +%] </head> <body[% ' class="' _ document.class.join(' ') _ '"' IF document.class.size %]> $content </body> </html> [% END %] [% BLOCK CONTENT_LAYOUT; render(document.layout ? "default/$document.layout" : 'default/base', content = content, model = model); END %] [% WRAPPER PAGE_LAYOUT; WRAPPER CONTENT_LAYOUT; content; END; FOREACH item IN document.postRender; render(item, model = model); END; END %]