macro_viewer

NAML documentation   Watch a video
   Usages of this macro
... in macro_viewer.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
<override_macro name="macro_viewer" requires="servlet">
    <n.naml_tools
Macro
Parameters: do
.>
        <n.current_macro_source
Macro
Requires: naml_tools
Parameters: do
.>
            <n.html
Macro
Parameters: head, body
>
                <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" />
                    <meta name="robots" content="noindex,nofollow"/>
                    <n.title
Macro
Requires: macro_source
Parameters: text
.><n.name
Binary
Namespace: MacroSourceNamespace
/></n.title.>
                    <n.macro_viewer_stylesheet
Macro
/>
                    <n.redirect_if_overridden
Macro
Requires: macro_source
/>
                    <n.codemirror_shared_head
Macro
/>
                    <n.macro_viewer_js
Macro
/>
                </head>
                <body>
                    <n.macro_viewer_header
Macro
Parameters: text
.>
                        <n.name
Binary
Namespace: MacroSourceNamespace
/>
                    </n.macro_viewer_header.>
 
                    <n.important_notices
Macro
/>
                    <n.source_panel
Macro
Requires: macro_source
/>
                </body>
            </n.html>
        </n.current_macro_source.>
    </n.naml_tools.>
</override_macro>
Overrides default macro
... in macro_viewer.naml
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<macro name="macro_viewer" requires="servlet">
    <n.naml_tools.>
        <n.current_macro_source.>
            <n.html>
                <head>
                    <meta name="robots" content="noindex,nofollow"/>
                    <n.title.><n.name/></n.title.>
                    <n.macro_viewer_stylesheet/>
                    <n.redirect_if_overridden/>
                    <n.codemirror_shared_head/>
                    <n.macro_viewer_js/>
                </head>
                <body>
                    <n.macro_viewer_header.>
                        <n.name/>
                    </n.macro_viewer_header.>
 
                    <n.important_notices/>
                    <n.source_panel/>
                </body>
            </n.html>
        </n.current_macro_source.>
    </n.naml_tools.>
</macro>