Module: Faml::FilterCompilers
- Defined in:
- lib/faml/filter_compilers.rb,
lib/faml/filter_compilers/css.rb,
lib/faml/filter_compilers/base.rb,
lib/faml/filter_compilers/ruby.rb,
lib/faml/filter_compilers/sass.rb,
lib/faml/filter_compilers/scss.rb,
lib/faml/filter_compilers/cdata.rb,
lib/faml/filter_compilers/plain.rb,
lib/faml/filter_compilers/coffee.rb,
lib/faml/filter_compilers/escaped.rb,
lib/faml/filter_compilers/markdown.rb,
lib/faml/filter_compilers/preserve.rb,
lib/faml/filter_compilers/tilt_base.rb,
lib/faml/filter_compilers/javascript.rb
Defined Under Namespace
Classes: Base, Cdata, Coffee, Css, Escaped, Javascript, Markdown, NotFound, Plain, Preserve, Ruby, Sass, Scss, TiltBase
Class Method Summary
collapse
Class Method Details
.compilers ⇒ Object
13
14
15
|
# File 'lib/faml/filter_compilers.rb', line 13
def self.compilers
@compilers ||= {}
end
|
.find(name) ⇒ Object
21
22
23
24
25
26
27
28
|
# File 'lib/faml/filter_compilers.rb', line 21
def self.find(name)
name = name.to_s
if compilers.key?(name.to_s)
compilers[name].new
else
raise NotFound.new(name)
end
end
|
.register(name, compiler) ⇒ Object
17
18
19
|
# File 'lib/faml/filter_compilers.rb', line 17
def self.register(name, compiler)
compilers[name.to_s] = compiler
end
|