view _test/Resources/TTView/Layout/default.tt @ 324:b1e7b55b4a38

reverted previous changes
author cin
date Sat, 25 May 2013 01:57:49 +0400
parents d357b5d85d25
children
line wrap: on
line source

[% view.mode = 'default' %]
[%
    BLOCK INIT;
        dojo = { require => [] };
    END;
%]
<html>
    <head>
        <title>$site.name - [% document.title || template.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>