Class: BPM::FormatProcessor
Overview
A Template that will use a format plugin to compile the content Register a subclass of the template with the with_plugin
Class Method Summary
collapse
#evaluate, method_name, plugin_name, #prepare
Class Method Details
.default_mime_type ⇒ Object
21
22
23
|
# File 'lib/bpm/pipeline/format_processor.rb', line 21
def self.default_mime_type
@plugin_opts["mime:default"]
end
|
.extension ⇒ Object
17
18
19
|
# File 'lib/bpm/pipeline/format_processor.rb', line 17
def self.extension
@extension
end
|
.with_plugin(ext, plugin_opts) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/bpm/pipeline/format_processor.rb', line 9
def self.with_plugin(ext, plugin_opts)
ret = super plugin_opts, 'compileFormat'
ret.instance_eval do
@extension = ext
end
ret
end
|