digest_subject

NAML documentation   Watch a video
   Usages of this macro
... in email.naml
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<macro name="digest_subject" requires="node">
    <n.compress
Macro
Parameters: text
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_post
Binary
Namespace: NodeNamespace
>
            <then>
                <n.topic_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.ends_with
Binary
Namespace: BasicNamespace
Parameters: text, suffix
 text="[n.subject
Macro
Requires: node
/]" suffix="[n.topic_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/]" >
                    <then>(<n.subject
Macro
Requires: node
/>)</then>
                </n.if.not.ends_with>
            </then>
            <else>
                <n.subject
Macro
Requires: node
/>
            </else>
        </n.if.is_post>
    </n.compress.>
</macro>