map_sitemapD

NAML documentation   Watch a video
   Usages of this macro
... in sitemap.naml
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<macro name="map_sitemapD" requires="url_mapper">  
    <n.regex
Binary
Namespace: BasicNamespace
Parameters: pattern, text, do
 text="[n.path
Binary
Namespace: UrlMapperNamespace
/]">  
        <pattern>  
            ^/sitemapD.txt$  
        </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="macro" value="sitemapD_txt" />  
                    <n.exit
Binary
Namespace: BasicNamespace
/>  
                </then>  
            </n.if.find>  
        </do>  
    </n.regex>  
</macro>