<!DOCTYPE html>
{{!--
    htmlTag is generated by LAZO.app.setHtmlTag;
    removing this if, else block will cause LAZO.app.setHtmlTag
    to not have any effect on the application
 --}}
{{#if htmlTag}}
    {{{htmlTag}}}
{{else}}
<html>
{{/if}}
<head>
    <meta charset="UTF-8">
    {{!--
        START: DO NOT REMOVE
        If any of the code between "START" and "END" is removed it will break lazo.
    --}}
    {{#each tags}}
        <{{name}} {{#each attributes}}{{@key}}="{{this}}" {{/each}}>{{content}}</{{name}}>
    {{/each}}
    {{#each dependencies.imports}}
        <link {{#each this}}{{@key}}="{{this}}" {{/each}} lazo-link="import">
    {{/each}}
    {{#each dependencies.css}}
        <link {{#each this}}{{@key}}="{{this}}" {{/each}} lazo-link="css">
    {{/each}}

    <script type="text/javascript">
        var LAZO = {
            initConf: {
                layout: '{{layout}}',
                rootCtx: {{{rootCtx}}},
                rootCtl: {{{rootCtl}}},
                shim: {{{shim}}},
                paths: {{{paths}}},
                args: {{{args}}},
                files: {{{files}}},
                bundler: '{{bundler}}',
                assets: '{{assets}}'
            }
        };
    </script>
    <script src="/lib/vendor/require.js"></script>
    {{#if lib}}
        <script type="text/javascript">
            requirejs(['{{lib}}'], function () {
                var bootstrap = requirejs.config({
                    baseUrl: '/',
                    paths: {
                        'resolver': 'lib/common/resolver',
                        'text': 'vendor/text',
                        'json': 'vendor/json',
                        'lazoBootstrap': 'lib/client/bootstrap'
                    }
                });

                bootstrap(['lazoBootstrap'], function () {});
            });
        </script>
    {{else}}
        <script type="text/javascript">
            (function () {
                var bootstrap = requirejs.config({
                    baseUrl: '/',
                    paths: {
                        'resolver': 'lib/common/resolver',
                        'text': 'vendor/text',
                        'json': 'vendor/json',
                        'lazoBootstrap': 'lib/client/bootstrap'
                    }
                });

                bootstrap(['lazoBootstrap'], function () {});
            })();
        </script>
    {{/if}}
    {{!-- END: DO NOT REMOVE --}}
</head>
{{!--
    bodyClass is generated by LAZO.app.setBodyClass;
    removing this if, else block will cause LAZO.app.setBodyClass
    to not have any effect on the application
--}}
<body{{#if bodyClass}} class='{{bodyClass}}'{{/if}}>
    {{!-- DO NOT REMOVE --}}
    {{{body}}}
</body>
</html>