debian-mirror-gitlab/lib/banzai/pipeline/pre_process_pipeline.rb

18 lines
312 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module Banzai
module Pipeline
class PreProcessPipeline < BasePipeline
def self.filters
FilterArray[
Filter::YamlFrontMatterFilter
]
end
def self.transform_context(context)
context.merge(
pre_process: true
)
end
end
end
end