clix/publish_atom.lua

changeset 113
8c9ab9920c79
parent 112
9c4b996bdfd8
child 119
d2cb5800ab27
equal deleted inserted replaced
112:9c4b996bdfd8 113:8c9ab9920c79
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

mercurial