html5_impl

NAML documentation   Watch a video
   Usages of this macro
... in html5_impl.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<override_macro name="html5_impl" parameters="head,body" requires="servlet">
    <n.page_start
Macro
/>
    <n.nabble_html
Binary
Namespace: ServletNamespace
Parameters: output, do
>
        <do>
            <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.head/>
            <n.body/>
            <n.load_call_later_script
Binary
Namespace: NabbleNamespace
/>
        </do>
        <output>
            <![CDATA[<!DOCTYPE html>]]>
            <html>
                <head>
                    <link rel="shortcut icon" href="https://2.bp.blogspot.com/-X_5GIZHYRZA/XPQp5XBOvaI/AAAAAAAAA8g/zYjY_OLilbYbhGmx5QI1xe4xpy4i1yH7QCPcBGAYYCw/s1600/FAVICON-heypikachuu.png" type="image/x-icon" />
                    <![CDATA[<meta charset="utf-8">
                    <meta name="viewport" content="width=device-width, initial-scale=1.0">]]>
                    <n.html5_stylesheets
Macro
/>
                    <n.html5_javascript_libraries
Macro
/>
                    <n.html_head_content
Binary
Namespace: HtmlNamespace
/>
                </head>
                <body>
                    <div class="nabble macro_[n.page_template
Binary
Namespace: HtmlNamespace
/]" id="nabble">
                        <n.apply_filters
Macro
Parameters: do
.html_body_content
Binary
Namespace: HtmlNamespace
/>
                    </div>
                    <n.bottom_scripts
Macro
/>
                    <n.as_html_comments
Macro
Parameters: text
.site_information
Macro
/>
                </body>
            </html>
        </output>
    </n.nabble_html>
</override_macro>
Overrides default macro
... in mobile.naml
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<macro name="html5_impl" parameters="head,body" requires="servlet">
    <n.page_start/>
    <n.nabble_html>
        <do>
            <n.put_in_head.head/>
            <n.body/>
            <n.load_call_later_script/>
        </do>
        <output>
            <![CDATA[<!DOCTYPE html>]]>
            <html>
                <head>
                    <![CDATA[<meta charset="utf-8">
                    <meta name="viewport" content="width=device-width, initial-scale=1.0">]]>
                    <n.html5_stylesheets/>
                    <n.html5_javascript_libraries/>
                    <n.html_head_content/>
                </head>
                <body>
                    <div class="nabble macro_[n.page_template/]" id="nabble">
                        <n.apply_filters.html_body_content/>
                    </div>
                    <n.bottom_scripts/>
                    <n.as_html_comments.site_information/>
                </body>
            </html>
        </output>
    </n.nabble_html>
</macro>