instant_emails

NAML documentation   Watch a video
   Usages of this macro
... in instant_emails.naml
1
2
3
4
5
6
7
8
9
10
<override_macro name="instant_emails" requires="instant_mail,node_page">
    <n.subscription_list
Binary
Namespace: InstantMailNamespace
Parameters: do
.loop
Macro
Requires: sequence
Parameters: by, do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_subscription
Binary
Namespace: SubscriptionList
Parameters: do
.user
Binary
Namespace: SubscriptionNamespace
Parameters: do
.should_get_instant_mail
Macro
Requires: user, node_page
>
            <then>
                <n.log
Binary
Namespace: NabbleNamespace
Parameters: text
.>Sending email to: <n.current_subscription
Binary
Namespace: SubscriptionList
Parameters: do
.user
Binary
Namespace: SubscriptionNamespace
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/></n.log.>
                <n.current_subscription
Binary
Namespace: SubscriptionList
Parameters: do
.send_instant_email
Macro
Requires: subscription, node_page
 />
            </then>
        </n.if.current_subscription.user.should_get_instant_mail>
    </n.subscription_list.loop.>
</override_macro>
Overrides default macro
... in email.naml
5
6
7
8
9
10
11
<macro name="instant_emails" requires="instant_mail,node_page">
    <n.subscription_list.loop.>
        <n.if.current_subscription.user.should_get_instant_mail>
            <then.current_subscription.send_instant_email />
        </n.if.current_subscription.user.should_get_instant_mail>
    </n.subscription_list.loop.>
</macro>