Class: ExpressTemplates::Template::Handler
- Inherits:
-
Object
- Object
- ExpressTemplates::Template::Handler
- Defined in:
- lib/express_templates/template/handler.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(template) ⇒ Object
4 5 6 |
# File 'lib/express_templates/template/handler.rb', line 4 def self.call(template) new.call(template) end |
Instance Method Details
#call(template) ⇒ Object
8 9 10 11 |
# File 'lib/express_templates/template/handler.rb', line 8 def call(template) # returns a string to be eval'd "(#{ExpressTemplates.compile(template)}).html_safe" end |