annotate shared_view/layout/default.tt @ 4:699dd88f0ef2

sync
author sergey
date Thu, 08 May 2014 15:55:40 +0400
parents 84ed27230825
children 2d1a0a75fc49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
sergey
parents: 3
diff changeset
1 [%
sergey
parents: 3
diff changeset
2 document.css = [];
sergey
parents: 3
diff changeset
3 document.scripts = [];
sergey
parents: 3
diff changeset
4 document.meta = [];
sergey
parents: 3
diff changeset
5 document.class = [];
sergey
parents: 3
diff changeset
6 %]
sergey
parents: 3
diff changeset
7 [% BLOCK PAGE_LAYOUT %]
sergey
parents: 3
diff changeset
8 <!DOCTYPE html>
sergey
parents: 3
diff changeset
9 <html>
sergey
parents: 3
diff changeset
10 <head>
sergey
parents: 3
diff changeset
11 <title>[% site.name ? "$site.name - $document.title" : document.title %]</title>
sergey
parents: 3
diff changeset
12 [%- FOREACH item IN document.css +%]
sergey
parents: 3
diff changeset
13 <link rel="stylesheet" href="$index" type="text/css">
sergey
parents: 3
diff changeset
14 [% END %]
sergey
parents: 3
diff changeset
15 [% FOREACH item IN document.scripts +%]
sergey
parents: 3
diff changeset
16 <script type="[% item.type || 'text/javascript' %]"[% ' href="' _ item.href _ '"' IF item.href %]>
sergey
parents: 3
diff changeset
17 [% item.text %]
sergey
parents: 3
diff changeset
18 </script>
sergey
parents: 3
diff changeset
19 [% END %]
sergey
parents: 3
diff changeset
20 [% FOREACH item IN document.meta +%]
sergey
parents: 3
diff changeset
21 <meta [% FOREACH pair IN item %]$pair.key = "[% pair.value | html_entity %]" [% END %]>
sergey
parents: 3
diff changeset
22 [% END +%]
sergey
parents: 3
diff changeset
23 </head>
sergey
parents: 3
diff changeset
24 <body[% ' class="' _ document.class.join(' ') _ '"' IF document.class.size %]>
sergey
parents: 3
diff changeset
25 $content
sergey
parents: 3
diff changeset
26 </body>
sergey
parents: 3
diff changeset
27 </html>
sergey
parents: 3
diff changeset
28 [% END %]
sergey
parents: 3
diff changeset
29 [% WRAPPER PAGE_LAYOUT;
sergey
parents: 3
diff changeset
30 render(document.layout ? "default/$document.layout" : 'default/base', content = content, model = model);
sergey
parents: 3
diff changeset
31 END %]