digest_text

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "digest_text".
... in digest_text.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<override_macro name="digest_text" requires="subscription,node_list" unindent="true">
    <n.set_local_subscription.this_subscription/>
    <n.comment.>Increased quote length to 500 chars</n.comment.> 
    <t>Digest Email</t>
    "<n.local_subscription.node.subject/>"
    <n.digest_post_count/>
 
    <n.reset_list_index/>
    <n.loop.>
        [<n.current_node.digest_subject/>]
        <n.compress.>
           <n.truncate. size="500">
                <n.current_node.message.as_text/>
            </n.truncate.>
        </n.compress.>
        <n.compress.>
            <t>by <t.author.current_node.owner.name/></t>
            <t>on <t.date.current_node.when_created.custom_format format="yyyy-MM-dd"/></t>
            <t>in <t.location.current_node.get_app_node.subject/></t>
        </n.compress.>
 
        <t>Read more</t>
        <n.current_node.url/>
 
        <n.nop/>
    </n.loop.>
    <n.unsubscribe_line format="text"/>
 
    ---
    <t>DO NOT REPLY TO THIS EMAIL</t>
 
    <t>Replies sent to this address are not read or processed.</t>
    <t>If you want to respond to a post for which you received this email,
    please go to the website: <t.url.local_subscription.node.url/></t>
</override_macro>
Overrides default macro
... in email.naml
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<macro name="digest_text" requires="subscription,node_list" unindent="true">
    <n.set_local_subscription.this_subscription/>
    <t>Digest Email</t>
    "<n.local_subscription.node.subject/>"
    <n.digest_post_count/>
 
    <n.reset_list_index/>
    <n.loop.>
        [<n.current_node.digest_subject/>]
        <n.compress.>
            <n.truncate. size="200">
                <n.current_node.message.as_text/>
            </n.truncate.>
        </n.compress.>
        <n.compress.>
            <t>by <t.author.current_node.owner.name/></t>
            <t>on <t.date.current_node.when_created.custom_format format="yyyy-MM-dd"/></t>
            <t>in <t.location.current_node.get_app_node.subject/></t>
        </n.compress.>
 
        <t>Read more</t>
        <n.current_node.url/>
 
        <n.nop/>
    </n.loop.>
    <n.unsubscribe_line format="text"/>
 
    ---
    <t>DO NOT REPLY TO THIS EMAIL</t>
 
    <t>Replies sent to this address are not read or processed.</t>
    <t>If you want to respond to a post for which you received this email,
    please go to the website: <t.url.local_subscription.node.url/></t>
</macro>