source: code/trunk/lib/peers.ml@ 2

Last change on this file since 2 was 2, checked in by fox, 3 years ago

Samhain 21

Converter

  • type selection
  • subdir conversion
  • htm extension

Gemini

  • index.gmi
  • topics and latest
  • gmi.atom feed

Add pull (http(s)) operation

  • peers.pub.conf and peers.priv.conf

HTML5 format & fixes by Novaburst
Phony target (thanks Gergely)

May

Basic unit renamed from Note to Text.
New modular text-parser, internal to Logarion, for generic notation parsing. The default input format is now a much plainer text.
Logarion created texts have part of the UUID in filename.
Logarion's index re-written in Messagepack format. Removed indices command. They are generated during convert.

File size: 309 bytes
Line 
1let public_fname = "peers.pub.conf"
2let private_fname = "peers.priv.conf"
3
4let fold_file fn init file = match open_in file with
5 | exception (Sys_error msg) -> prerr_endline msg; init
6 | file ->
7 let rec read acc = try read (fn (input_line file) acc)
8 with End_of_file -> close_in file; acc in
9 read init
Note: See TracBrowser for help on using the repository browser.