sub_app_type

NAML documentation   Watch a video
   Usages of this macro
... in create_sub_app.naml
105
106
107
108
109
110
111
112
113
114
115
<macro name="sub_app_type" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.regex_matches
Macro
Parameters: pattern, text
 text="[n.type
Binary
Namespace: NodeNamespace
Parameters: equals
/]" pattern="forum|category|mixed">
        <then>forum</then>
        <else>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.type
Binary
Namespace: NodeNamespace
Parameters: equals
 equals="board">
                <then>category</then>
                <else><n.type
Binary
Namespace: NodeNamespace
Parameters: equals
/></else>
            </n.if.type>
        </else>
    </n.if.regex_matches>
</macro>