16 print("","--title=Soliloquy \\"); |
16 print("","--title=Soliloquy \\"); |
17 print("","--summary=\"To be, or not to be: that is the question\""); |
17 print("","--summary=\"To be, or not to be: that is the question\""); |
18 return 0; |
18 return 0; |
19 end |
19 end |
20 local function on_connect(conn) |
20 local function on_connect(conn) |
21 conn:add_plugin"pubsub"; |
|
22 -- Required: id, title, updated, author (which must have a name) |
21 -- Required: id, title, updated, author (which must have a name) |
23 local entry_id = opts.entry_id or ("clix-"..new_uuid()); |
22 local entry_id = opts.entry_id or ("clix-"..new_uuid()); |
24 local atom_entry = verse.stanza("entry", { xmlns="http://www.w3.org/2005/Atom" }) |
23 local atom_entry = verse.stanza("entry", { xmlns="http://www.w3.org/2005/Atom" }) |
25 :tag("id"):text(entry_id):up(id) |
24 :tag("id"):text(entry_id):up(id) |
26 :tag("title"):text(opts.title or ""):up() |
25 :tag("title"):text(opts.title or ""):up() |