view _test/Resources/view/layout/header.tt @ 405:cd6c6e61d442 ref20150831

Working on DI container
author cin
date Mon, 31 Aug 2015 10:23:42 +0300
parents cfd7570c2af2
children
line wrap: on
line source

<!DOCTYPE HTML>
<html>
<head>
<title>$document.title</title>
<script>
    [%
        IF document.dojo.modules.size;
            modules = [];
            FOREACH module IN document.dojo.modules.unique;
                modules.push('"' _ module _ '"');
            END;
    %]
            require([ [% modules.join(', ') %] ]);
    [%
        END;
    %]
</script>
</head>
<body>