Changeset 26 in code for trunk/cli/atom.ml
- Timestamp:
- Nov 16, 2022, 10:02:07 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/atom.ml
r19 r26 51 51 let _i = Str.(search_forward (regexp (protocol ^ "://[^;]*")) locs 0) in 52 52 Str.(matched_string locs) 53 with Not_found -> Printf.eprintf "Missing location for %s " protocol; ""53 with Not_found -> Printf.eprintf "Missing location for %s, add it to txt.conf\n" protocol; "" 54 54 55 55 let indices alternate_type c = … … 62 62 let base_url = base_url c.kv protocol_regexp in 63 63 let self = Filename.concat base_url fname in 64 file fname @@ 64 file fname @@ (*TODO: alternate & self per url*) 65 65 {|<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:base="|} ^ base_url ^ {|"><title>|} 66 66 ^ title ^ {|</title><link rel="alternate" type="|} ^ alternate_type ^ {|" href="|}
Note:
See TracChangeset
for help on using the changeset viewer.