diff _test/Resources/TTView/Layout/default.tt @ 191:78a18a2b6266

IMPL::Web::View improvements (unstable)
author cin
date Thu, 05 Apr 2012 17:51:51 +0400
parents
children 4d0e1962161c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_test/Resources/TTView/Layout/default.tt	Thu Apr 05 17:51:51 2012 +0400
@@ -0,0 +1,16 @@
+<html>
+	<head>
+		<title>$site.name - $title</title>
+		[% IF dojo.require.size;
+			modules = [];
+			modules.push('"' _ item _ '"') FOREACH item IN dojo.require.unique();
+		%]
+		<script type="text/javascript">
+			require([ [% modules.join(', ') %] ]);
+		</script>
+		[% END %]
+	</head>
+	<body>
+		[% content %]
+	</body>
+</html>
\ No newline at end of file