send_node_as_email

NAML documentation   Watch a video
   Usages of this macro
... in reply.naml
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<macro name="send_node_as_email" requires="node">
    <n.set_local_node
Macro
Parameters: node
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
/>
    <n.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
            <then.get_parameter_values
Binary
Namespace: RequestNamespace
Parameters: name, do
. name="email-to">
                <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
 name="email" value="[n.parse_email
Binary
Namespace: NabbleNamespace
Parameters: text
.current_parameter_value
Binary
Namespace: ParameterValueList
/]" />
                    <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="email">
                        <then.local_node
Macro
Parameters: do
.topic_or_app
Macro
Requires: node
Parameters: do
.subscription_for
Binary
Namespace: NodeNamespace
Parameters: do, email
. email="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='email'/]">
                            <n.send_node_as_email_to_user
Macro
Requires: subscription
Parameters: node_attr
.local_node
Macro
Parameters: do
/>
                        </then.local_node.topic_or_app.subscription_for.>
                    </n.if.not.is_null.var>
                </n.loop.>
            </then.get_parameter_values.>
        </n.if.visitor.is_registered>
    </n.block.>
</macro>