annotate shared_view/layout/default.tt @ 14:d997ff96acf1

sync
author sergey
date Mon, 19 May 2014 18:34:16 +0400
parents 7d92a42f8e18
children
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 = [];
8
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
6 document.postRender = [];
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
7 render('init',model = model);
4
sergey
parents: 3
diff changeset
8 %]
sergey
parents: 3
diff changeset
9 [% BLOCK PAGE_LAYOUT %]
sergey
parents: 3
diff changeset
10 <!DOCTYPE html>
sergey
parents: 3
diff changeset
11 <html>
sergey
parents: 3
diff changeset
12 <head>
sergey
parents: 3
diff changeset
13 <title>[% site.name ? "$site.name - $document.title" : document.title %]</title>
6
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
14 [% FOREACH item IN document.css %]
2d1a0a75fc49 added css, templates
sergey
parents: 4
diff changeset
15 <link rel="stylesheet" href="$item" type="text/css">
4
sergey
parents: 3
diff changeset
16 [% END %]
sergey
parents: 3
diff changeset
17 [% FOREACH item IN document.scripts +%]
8
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
18 <script type="[% item.type || 'text/javascript' %]"[% ' src="' _ item.src _ '"' IF item.src %]>
4
sergey
parents: 3
diff changeset
19 [% item.text %]
sergey
parents: 3
diff changeset
20 </script>
sergey
parents: 3
diff changeset
21 [% END %]
sergey
parents: 3
diff changeset
22 [% FOREACH item IN document.meta +%]
sergey
parents: 3
diff changeset
23 <meta [% FOREACH pair IN item %]$pair.key = "[% pair.value | html_entity %]" [% END %]>
sergey
parents: 3
diff changeset
24 [% END +%]
sergey
parents: 3
diff changeset
25 </head>
sergey
parents: 3
diff changeset
26 <body[% ' class="' _ document.class.join(' ') _ '"' IF document.class.size %]>
sergey
parents: 3
diff changeset
27 $content
sergey
parents: 3
diff changeset
28 </body>
sergey
parents: 3
diff changeset
29 </html>
sergey
parents: 3
diff changeset
30 [% END %]
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
31 [% BLOCK CONTENT_LAYOUT;
4
sergey
parents: 3
diff changeset
32 render(document.layout ? "default/$document.layout" : 'default/base', content = content, model = model);
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
33 END %]
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
34 [% WRAPPER PAGE_LAYOUT;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
35 WRAPPER CONTENT_LAYOUT;
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
36 content;
8
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
37 END;
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
38 FOREACH item IN document.postRender;
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
39 render(item, model = model);
7d92a42f8e18 improved doxygen library
sergey
parents: 7
diff changeset
40 END;
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 6
diff changeset
41 END %]