annotate 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
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>
6
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
12 [% FOREACH item IN document.css %]
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
13 <link rel="stylesheet" href="$item" type="text/css">
4
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 %]
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
29 [% BLOCK CONTENT_LAYOUT;
4
sergey
parents: 3
diff changeset
30 render(document.layout ? "default/$document.layout" : 'default/base', content = content, model = model);
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
31 END %]
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
32 [% WRAPPER PAGE_LAYOUT;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
33 WRAPPER CONTENT_LAYOUT;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
34 content;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
35 END;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
36 END %]