view_app

NAML documentation   Watch a video
   Usages of this macro
... in app.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
<macro name="view_app" requires="servlet,nabble,basic">
    <n.switch
Binary
Namespace: BasicNamespace
Parameters: do, value
. value="[n.get_node_from_parameter
Macro
Requires: servlet
Parameters: do
.type
Binary
Namespace: NodeNamespace
Parameters: equals
/]">
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="forum">
            <n.call_view_forum
Macro
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="mixed">
            <n.call_view_mixed
Macro
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="category">
            <n.view_category
Macro
Requires: basic, nabble, servlet
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="board">
            <n.view_board
Macro
Requires: basic, nabble, servlet
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="gallery">
            <n.view_gallery
Macro
Requires: basic, nabble, servlet
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="blog">
            <n.view_blog
Macro
Requires: basic, nabble, servlet
/>
        </n.case.>
        <n.case
Binary
Namespace: SwitchNamespace
Parameters: do, value
. value="news">
            <n.view_news
Macro
Requires: basic, nabble, servlet
/>
        </n.case.>
        <n.default_case
Binary
Namespace: SwitchNamespace
Parameters: do
.throw_runtime_exception
Binary
Namespace: BasicNamespace
Parameters: text
 text="invalid app type: '[n.switch_value
Binary
Namespace: SwitchNamespace
/]'" />
    </n.switch.>
</macro>