27 :tag("id"):text(entry_id):up() |
27 :tag("id"):text(entry_id):up() |
28 :tag("title"):text(opts.title or ""):up() |
28 :tag("title"):text(opts.title or ""):up() |
29 :tag("updated"):text(opts.updated or datetime()):up(); |
29 :tag("updated"):text(opts.updated or datetime()):up(); |
30 atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up(); |
30 atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up(); |
31 atom_entry:up(); |
31 atom_entry:up(); |
32 atom_entry:tag("source") |
|
33 :tag("id"):text(opts.node):up() |
|
34 :tag("link", { rel = "self", href = opts.node }):up() |
|
35 :up(); |
|
36 if opts.summary then |
32 if opts.summary then |
37 atom_entry:tag("summary"):text(opts.summary):up(); |
33 atom_entry:tag("summary"):text(opts.summary):up(); |
38 end |
34 end |
39 |
35 |
40 if opts.content then |
36 if opts.content then |