view _test/Resources/view/layout/header.tt @ 418:3f38dabaf5cc ref20150831

sync
author cin
date Mon, 28 Dec 2015 15:11:35 +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>