From b08609649a576ba82d34384110373ac4804f0231 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 25 Aug 2024 19:30:39 +0200 Subject: use Text::Xslate --- templates/list.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 templates/list.md (limited to 'templates') diff --git a/templates/list.md b/templates/list.md new file mode 100644 index 0000000..02b8c1b --- /dev/null +++ b/templates/list.md @@ -0,0 +1,32 @@ +[%- FOREACH e IN events -%] +### [% e.time_brief %]. +[%- IF e.summary %] [% e.summary %] +[%- END %] +[% e.description %] +[%- IF e.attendees %] +Med [% e.attendees.join(' og ') %]. +[%- END %] +[%- IF e.location %] +**Mødested:** [% e.location %] +[%- END %] +[%- IF e.timespan %] +**Tid:** [% e.timespan %]. +[%- END %] +[%- IF e.price %] +**Pris:** [% e.price %] +[%- END %] +[%- FOREACH uri IN e.attachments %] +[%- IF uri.host == 'byvandring.holdbar.com' %] +[Køb billet på Holdbar]([% uri.as_iri %]) +[%- END %] +[%- IF uri.host == 'billetto.dk' %] +[Køb billet på Billetto]([% uri.as_iri %]) +[%- END %] +[%- IF uri.host == 'byvandring.nu' %] +[Læs mere her]([% uri.as_iri %]) +[%- END %] +[%- END %] + +--- + +[% END %] -- cgit v1.2.3