... | in url_mapper.naml |
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<macro name="map_app" requires="url_mapper">
<n.regex Binary Namespace: BasicNamespace
Parameters:
pattern, text, do
♦ ♦ Binary Namespace: UrlMapperNamespace
♦ ♦
<pattern>
-f(\d+)(?:p(\d+))?(?:a(\d+))?(?:i(\d+))?(?:d(\d+))?(?:ef\d+)?(?:\.([a-z]+))?\.html$
</pattern>
<do>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: RegexNamespace
♦ ♦
<then>
<n.set_parameter_to_found Macro Requires: url_mapper, regex
Parameters:
name, group
♦ ♦
<n.set_parameter_if_found Macro Requires: url_mapper, regex
Parameters:
name, group
♦ ♦
<n.set_parameter_if_found Macro Requires: url_mapper, regex
Parameters:
name, group
♦ ♦
<n.set_parameter_if_found Macro Requires: url_mapper, regex
Parameters:
name, group
♦ ♦
<n.set_parameter_if_found Macro Requires: url_mapper, regex
Parameters:
name, group
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Macro Requires: regex
Parameters:
group
♦ ♦
<then>
<n.set_parameter Binary Namespace: UrlMapperNamespace
Parameters:
name, value
♦ ♦
view_<n.found Binary Namespace: RegexNamespace
Parameters:
group
♦ ♦
</n.set_parameter.>
</then>
<else>
<n.set_parameter Binary Namespace: UrlMapperNamespace
Parameters:
name, value
♦ ♦
</else>
</n.if.did_find>
<n.exit Binary Namespace: BasicNamespace
♦ ♦
</then>
</n.if.find>
</do>
</n.regex>
</macro>
|
Free forum by Nabble | Edit this page |