app_path

NAML documentation   Watch a video
   Usages of this macro
... in app.naml
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<macro name="app_path" parameters="template,index_record,date" requires="node">
    <n.encode_url
Macro
Parameters: text
.remove_spaces
Macro
Parameters: text
.>
        <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="index_record">
            <n.to_null_if
Macro
Parameters: equals, value
. equals="0">
                <n.index_record/>
            </n.to_null_if.>
        </n.set_var.>
        <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="template">
            <n.to_null_if
Macro
Parameters: equals, value
. equals="[n.app_default_template
Macro
/]">
                <n.template/>
            </n.to_null_if.>
        </n.set_var.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="template">
            <then>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.starts_with
Binary
Namespace: BasicNamespace
Parameters: prefix, text
 prefix="view_" text="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='template'/]">
                    <then>
                        <n.throw_runtime_exception
Binary
Namespace: BasicNamespace
Parameters: text
.>
                            template = <n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='template'/>
                        </n.throw_runtime_exception.>
                    </then>
                </n.if.not.starts_with>
                <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="template">
                    <n.substring
Binary
Namespace: BasicNamespace
Parameters: end, text, begin
 text="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='template'/]" begin="5" />
                </n.set_var.>
            </then>
        </n.if.not.is_null.var>
        /
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
>
            <condition>
                <n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.all_true
Macro
Parameters: text
.>
                    <n.is_root
Binary
Namespace: NodeNamespace
/>
                    <n.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='template'/>
                    <n.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.date/>
                    <n.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='index_record'/>
                </n.not.all_true.>
            </condition>
            <then>
                <n.url_encoded_subject
Binary
Namespace: NodeNamespace
/>
                -f<n.id
Binary
Namespace: NodeNamespace
/>
                <n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.prepend
Binary
Namespace: BasicNamespace
Parameters: prefix, text, except_if
. prefix="i"><n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="index_record"/></n.hide_null.prepend.>
                <n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.prepend
Binary
Namespace: BasicNamespace
Parameters: prefix, text, except_if
. prefix="d"><n.date/></n.hide_null.prepend.>
                <n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.prepend
Binary
Namespace: BasicNamespace
Parameters: prefix, text, except_if
. prefix="."><n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="template"/></n.hide_null.prepend.>
                .html
            </then>
        </n.if>
    </n.encode_url.remove_spaces.>
</macro>