Changeset 3 in code for trunk/cli/atom.ml
- Timestamp:
- Apr 15, 2022, 1:17:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/atom.ml
r2 r3 10 10 module P = Parsers.Plain_text.Make (Converter.Html) 11 11 12 let id txt = "<id>urn:uuid:" ^ Logarion.( Id.to_string txt.Text.uuid) ^ "</id>"12 let id txt = "<id>urn:uuid:" ^ Logarion.(txt.Text.id) ^ "</id>" 13 13 let title text = "<title>" ^ esc text.Logarion.Text.title ^ "</title>" 14 14 15 15 let authors text = 16 let u acc addr = acc ^ element "uri" (Uri.to_string addr)in16 let u acc addr = acc ^ element "uri" addr in 17 17 let open Logarion in 18 18 let fn txt a = … … 52 52 ^ title ^ {|</title><link rel="alternate" type="|} ^ alternate_type ^ {|" href="|} 53 53 ^ base_url ^ {|/" /><link rel="self" type="application/atom+xml" href="|} 54 ^ self ^ {|" /><id>urn:uuid:|} ^ Logarion.Id.to_stringarchive_id ^ "</id><updated>"55 ^ Ptime.to_rfc3339 (Ptime_clock.now ()) ^ "</updated>\n"54 ^ self ^ {|" /><id>urn:uuid:|} ^ archive_id ^ "</id><updated>" 55 ^ Logarion.Date.now () ^ "</updated>\n" 56 56 ^ List.fold_left (fun acc t -> acc ^ entry base_url t) "" texts 57 57 ^ "</feed>"
Note:
See TracChangeset
for help on using the changeset viewer.