test_page.naml

<macro name="test_page" requires="servlet">
    <n.html>
        <head>
        </head>
        <body>
            <h1>Test</h1>
            <p>This is a test.</p>
        </body>
    </n.html>
</macro>

<macro name="map_test" requires="url_mapper">  
    <n.regex text="[n.path/]">  
        <pattern>  
            ^/test.html$  
        </pattern>  
        <do>  
            <n.if.find>  
                <then>  
                    <n.set_parameter name="macro" value="test_page" />  
                    <n.exit/>  
                </then>  
            </n.if.find>  
        </do>  
    </n.regex>  
</macro>