map_root

NAML documentation   Watch a video
   Usages of this macro
... in url_mapper.naml
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<macro name="map_root" requires="url_mapper">
    <n.regex
Binary
Namespace: BasicNamespace
Parameters: pattern, text, do
 text="[n.path
Binary
Namespace: UrlMapperNamespace
/]">
        <pattern>
            ^/$
        </pattern>
        <do>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.find
Binary
Namespace: RegexNamespace
>
                <then>
                    <n.set_parameter
Binary
Namespace: UrlMapperNamespace
Parameters: name, value
. name="node">
                        <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/>
                    </n.set_parameter.>
                    <n.set_parameter
Binary
Namespace: UrlMapperNamespace
Parameters: name, value
 name="macro" value="view_app" />
                    <n.exit
Binary
Namespace: BasicNamespace
/>
                </then>
            </n.if.find>
        </do>
    </n.regex>
</macro>
Feedback, Links, Privacy, Rules, Support, About