diff shared_view/layout/default.tt @ 8:7d92a42f8e18

improved doxygen library
author sergey
date Wed, 14 May 2014 17:28:22 +0400
parents fa7a99c2d079
children
line wrap: on
line diff
--- a/shared_view/layout/default.tt	Wed May 14 01:22:21 2014 +0400
+++ b/shared_view/layout/default.tt	Wed May 14 17:28:22 2014 +0400
@@ -3,6 +3,8 @@
 	document.scripts = [];
 	document.meta = [];
 	document.class = [];
+	document.postRender = [];
+	render('init',model = model);
 %]
 [% BLOCK PAGE_LAYOUT %]
 <!DOCTYPE html>
@@ -13,7 +15,7 @@
 		<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 %]>
+		<script type="[% item.type || 'text/javascript' %]"[% ' src="' _ item.src _ '"' IF item.src %]>
 			[% item.text %]
 		</script>
 		[% END %]
@@ -32,5 +34,8 @@
 [% WRAPPER PAGE_LAYOUT;
 	WRAPPER CONTENT_LAYOUT;
 		content;
-	END;	
+	END;
+	FOREACH item IN document.postRender;
+		render(item, model = model);
+	END;
 END %]