map_robots

NAML documentation   Watch a video
   Usages of this macro
... in url mapper.naml
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<macro name="map_robots" requires="url_mapper">  
      <n.regex
Binary
Namespace: BasicNamespace
Parameters: pattern, text, do
 text="[n.path
Binary
Namespace: UrlMapperNamespace
/]">  
        <pattern>  
          ^/robots.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="robots_txt" />  
              <n.exit
Binary
Namespace: BasicNamespace
/>  
            </then>  
          </n.if.find>  
        </do>  
      </n.regex>  
    </macro>
Feedback, Links, Privacy, Rules, Support, About