as_atom_entry

NAML documentation   Watch a video
   Usages of this macro
... in feeds.naml
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<macro name="as_atom_entry" requires="node, node_page">
    <n.nop
Binary
Namespace: BasicNamespace
/>
    <entry>
        <id>tag:<n.server_name
Binary
Namespace: RequestNamespace
/>,2006:post-<n.id
Binary
Namespace: NodeNamespace
/></id>
        <title><n.subject
Macro
Requires: node
/></title>
        <published><n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.as_atom_date_format
Macro
Requires: date
/></published>
        <updated><n.atom_entry_updated_value
Macro
Requires: node
/></updated>
        <author>
            <name><n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></name>
        </author>
        <content type="html">
            <n.encode
Binary
Namespace: BasicNamespace
Parameters: text
.message_with_signature
Macro
Requires: node
/>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.equals
Binary
Namespace: NodeNamespace
Parameters: node
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
>
                <then.encode
Binary
Namespace: BasicNamespace
Parameters: text
.>
                    <p>Posted in <n.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.node_link
Macro
Requires: node
Parameters: text, href, title, class, target
/></p>
                </then.encode.>
            </n.if.not.this_node.get_app_node.equals.page_node>
        </content>
        <link rel="alternate" type="text/html" href="[n.url
Macro
Requires: node
Parameters: template, date, index_record
/]" />
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.parent_node
Binary
Namespace: NodeNamespace
Parameters: do
.is_post
Binary
Namespace: NodeNamespace
>
            <then><thr:in-reply-to ref="tag:[n.server_name
Binary
Namespace: RequestNamespace
/],2006:post-[n.parent_node
Binary
Namespace: NodeNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]"/></then>
        </n.if.parent_node.is_post>
    </entry>
</macro>