2015-12-08 00:01:38 +03:00
|
|
|
:: Simple rss transformer
|
|
|
|
::
|
2016-01-30 01:41:19 +03:00
|
|
|
:::: /hoon/rss-xml/ren
|
2015-12-08 00:01:38 +03:00
|
|
|
::
|
2016-02-18 02:16:33 +03:00
|
|
|
/? 310
|
2016-01-30 01:41:19 +03:00
|
|
|
/= sum /snip/
|
2016-02-18 02:16:33 +03:00
|
|
|
/= kid /^ (map knot {marl marl})
|
|
|
|
/_ /snip/
|
|
|
|
/$ |=({bem/beam *} [our=p.bem tub=(slag 1 (flop s.bem))])
|
|
|
|
!:
|
|
|
|
:::: ~fyr, ~tasfyn-partyv
|
2015-12-08 00:01:38 +03:00
|
|
|
::
|
2016-02-18 02:16:33 +03:00
|
|
|
~& [sum=sum kid=kid]
|
2015-12-08 00:01:38 +03:00
|
|
|
:: Link from relative path
|
2016-02-18 02:16:33 +03:00
|
|
|
=+ hok=`hart`[& ~ &+/org/urbit/(rsh 3 1 (scot %p our))]
|
|
|
|
=+ ref=|=(a/path (earn hok `(weld tub a) ~))
|
2015-12-08 00:01:38 +03:00
|
|
|
:: urb:front attrs confuse RSS validators, readers
|
2016-02-18 02:16:33 +03:00
|
|
|
=+ no-meta=|=(a/marl ^+(a ?~(a ~ ?.(?=($meta n.g.i.a) a $(a t.a)))))
|
2015-12-08 00:01:38 +03:00
|
|
|
::
|
|
|
|
%- crip %- poxo
|
|
|
|
;rss(version "2.0")
|
|
|
|
;channel
|
|
|
|
;title: *{hed.sum}
|
|
|
|
;link: {(ref /)}
|
|
|
|
;description: *{(no-meta tal.sum)}
|
|
|
|
;* %+ turn (~(tap by kid))
|
2016-02-18 02:16:33 +03:00
|
|
|
|= {nom/@t hed/marl tal/marl}
|
2015-12-08 00:01:38 +03:00
|
|
|
;item
|
|
|
|
;title: *{hed}
|
|
|
|
;description: *{(no-meta tal)}
|
|
|
|
;link: {(ref /[nom])}
|
|
|
|
==
|
|
|
|
==
|
|
|
|
==
|