Module: Tilt::ContextExt
- Included in:
- Crystal::TemplateContext
- Defined in:
- lib/crystal/template/support/tilt.rb
Overview
Include it into your template context class for :output, :capture and :concat support
Instance Method Summary collapse
Instance Method Details
#capture(*args, &block) ⇒ Object
10 11 12 |
# File 'lib/crystal/template/support/tilt.rb', line 10 def capture *args, &block _tilt_template.class.capture self, &block end |
#concat(value) ⇒ Object
14 15 16 |
# File 'lib/crystal/template/support/tilt.rb', line 14 def concat value _tilt_template.class.concat self, value end |
#output ⇒ Object
6 7 8 |
# File 'lib/crystal/template/support/tilt.rb', line 6 def output _tilt_template.class.output(self) end |