zeus.ugent.be/lib/filters/ical_filter.rb

10 lines
182 B
Ruby
Raw Normal View History

2016-07-27 00:13:36 +02:00
class IcalFilter < Nanoc::Filter
identifier :ical
def run(_content, _params = {})
cal = Icalendar::Calendar.new
cal.add_event(event_for(item))
cal.to_ical
end
end