Mercurial > pub > site.implab
view shared_view/layout/default.tt @ 7:fa7a99c2d079
dox library templates and schemas
author | sergey |
---|---|
date | Wed, 14 May 2014 01:22:21 +0400 |
parents | 2d1a0a75fc49 |
children | 7d92a42f8e18 |
line wrap: on
line source
[% document.css = []; document.scripts = []; document.meta = []; document.class = []; %] [% 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' %]"[% ' href="' _ item.href _ '"' IF item.href %]> [% 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; END %]