2017-12-02 21:45:47 +03:00
|
|
|
:: /mar/collections/config/hoon
|
|
|
|
::
|
2017-12-16 01:52:30 +03:00
|
|
|
/- *collections
|
|
|
|
|_ con=config
|
|
|
|
::
|
2017-12-02 21:45:47 +03:00
|
|
|
::
|
|
|
|
++ grow
|
|
|
|
|%
|
|
|
|
++ mime
|
|
|
|
:- /text/x-collections-config
|
|
|
|
%- as-octs:mimes:html
|
|
|
|
(of-wain:format txt)
|
|
|
|
++ txt
|
|
|
|
^- (list @t)
|
2018-02-05 23:49:24 +03:00
|
|
|
:* (cat 3 '> ' desc.con)
|
2017-12-14 04:11:13 +03:00
|
|
|
(cat 3 'public: ' ?:(publ.con 'y' 'n'))
|
2018-02-05 23:49:24 +03:00
|
|
|
(cat 3 'visible: ' ?:(visi.con 'y' 'n'))
|
|
|
|
(cat 3 'comments: ' ?:(comm.con 'y' 'n'))
|
|
|
|
(cat 3 'xenopost: ' ?:(xeno.con 'y' 'n'))
|
|
|
|
:- 'except:'
|
|
|
|
%+ turn (sort ~(tap in mems.con) aor)
|
|
|
|
|= a=@p
|
2018-02-06 01:48:14 +03:00
|
|
|
(cat 3 ' ' (scot %p a))
|
2018-02-05 23:49:24 +03:00
|
|
|
==
|
2017-12-14 04:39:19 +03:00
|
|
|
++ elem :: web display
|
|
|
|
;div
|
2018-02-06 01:04:22 +03:00
|
|
|
::;pre: {(trip (of-wain:format txt))}
|
|
|
|
;h1: {(trip desc.con)}
|
|
|
|
::;div
|
|
|
|
:: {(trip desc.con)}
|
|
|
|
::==
|
2017-12-14 04:39:19 +03:00
|
|
|
;list; :: show topics
|
|
|
|
==
|
2017-12-15 03:39:12 +03:00
|
|
|
++ front (my title+desc.con ~) :: title in lists
|
2017-12-02 21:45:47 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ grab
|
|
|
|
|%
|
|
|
|
++ mime
|
|
|
|
|= {p/mite:eyre q/octs:eyre}
|
|
|
|
(txt (to-wain:format q.q))
|
|
|
|
++ txt
|
2017-12-14 04:11:13 +03:00
|
|
|
|= txs/(pole @t)
|
2018-02-06 01:04:22 +03:00
|
|
|
~& %reading-config
|
2018-02-06 01:48:14 +03:00
|
|
|
?> ?=([desc=@t publ=@t visi=@t comm=@t xeno=@t %'except:' mem=*] txs)
|
|
|
|
:* (rash desc.txs ;~(pfix (jest '> ') (cook crip (star next))))
|
|
|
|
(rash publ.txs ;~(pfix (jest 'public: ') (flag %y %n)))
|
|
|
|
(rash visi.txs ;~(pfix (jest 'visible: ') (flag %y %n)))
|
|
|
|
(rash comm.txs ;~(pfix (jest 'comments: ') (flag %y %n)))
|
|
|
|
(rash xeno.txs ;~(pfix (jest 'xenopost: ') (flag %y %n)))
|
|
|
|
%- sy
|
|
|
|
%+ turn (skip mem.txs |=(a=@t =(a ''))) :: skip trailing blank
|
|
|
|
(curr rash ;~(pfix (jest ' ~') fed:ag))
|
|
|
|
==
|
2017-12-02 21:45:47 +03:00
|
|
|
--
|
|
|
|
++ grad %txt
|
|
|
|
--
|