instant_text

NAML documentation   Watch a video
   Usages of this macro
... in instant_text.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<override_macro name="instant_text" requires="subscription,node_page" unindent="true">
    <n.set_local_subscription
Macro
Parameters: subscription
.this_subscription
Binary
Namespace: SubscriptionNamespace
Parameters: do
/>
    Hello <n.local_subscription
Macro
Parameters: do
.user
Binary
Namespace: SubscriptionNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/>,
 
    You are receiving this notification because you are watching
    the NY Ski <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.harvey_app_type
Macro
Requires: node
/>.
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
        <then>This is just to let you know that <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/> created a new subcategory called "<n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/>":</then>
        <else.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_topic
Binary
Namespace: NodeNamespace
>
            <then>There is a new topic called "<n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/>" available at:</then>
            <else>There is a new reply to the "<n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/>" topic:</else>
        </else.if.page_node.is_topic>
    </n.if.page_node.is_app>
 
    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/>
    <n.local_subscription
Macro
Parameters: do
.user
Binary
Namespace: SubscriptionNamespace
Parameters: do
.show_text_for_admins
Macro
Requires: user
Parameters: format
 format="text"/>
    * <n.unsubscribe_line
Macro
Requires: subscription
Parameters: format
 format="text"/>
    ______________________________________
    The New York Ski Blog | NY Ski <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.harvey_app_type
Macro
Requires: node
/>
    <n.base_url
Binary
Namespace: NabbleNamespace
/>
</override_macro>
Overrides default macro
... in email.naml
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<macro name="instant_text" requires="subscription,node_page" unindent="true">
    <n.if.page_node.is_app>
        <then>
            <t><t.username.page_node.owner.name/> created a new subcategory</t>:
            <n.page_node.subject/>
        </then>
    </n.if.page_node.is_app>
 
    <n.page_node.text_email_message_with_signature />
    _______________________________________________
    <t>If you reply to this email, your message will be added to the discussion below</t>:
    <n.page_node.url/>
    <n.start_new_topic_line/>
    <n.unsubscribe_line format="text"/>
</macro>