map_sitemapC

NAML documentation   Watch a video
   Usages of this macro
... in sitemap.naml
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<macro name="map_sitemapC" requires="url_mapper">  
    <n.regex
Binary
Namespace: BasicNamespace
Parameters: pattern, text, do
 text="[n.path
Binary
Namespace: UrlMapperNamespace
/]">  
        <pattern>  
            ^/sitemapC.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="sitemapC_txt" />  
                    <n.exit
Binary
Namespace: BasicNamespace
/>  
                </then>  
            </n.if.find>  
        </do>  
    </n.regex>  
</macro>