Sha256: c422573a8471121a69231396fe74b8de042a0bd454028c15b7573ef9cc8e13fd
Contents?: true
Size: 603 Bytes
Versions: 5
Compression:
Stored size: 603 Bytes
Contents
module Stevenson module OutputFilter class Generator attr_reader :options def initialize(options) @options = options end def generate!(template) filters.inject(template.local_directory) do |rendered, filter| OutputFilter.filter_for(filter).new(rendered).output end end private def filters @_filters ||= begin filters = [:jekyll] filters.concat options[:output] if options[:output] filters << :zip if options[:zip] filters.uniq end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems