Class: Barber::InlinePrecompiler
- Inherits:
-
Object
- Object
- Barber::InlinePrecompiler
- Defined in:
- lib/barber/precompilers.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.call(template, options = nil) ⇒ Object
4 5 6 |
# File 'lib/barber/precompilers.rb', line 4 def call(template, = nil) "Handlebars.template(#{compile(template, )})" end |
.compile(template, options = nil) ⇒ Object
8 9 10 |
# File 'lib/barber/precompilers.rb', line 8 def compile(template, = nil) Barber::Precompiler.compile template, end |