Class: Tilt::HamlTemplate

Inherits:
Object show all
Defined in:
lib/crystal/template/support/tilt.rb

Class Method Summary collapse

Class Method Details

.capture(context, &block) ⇒ Object



60
61
62
# File 'lib/crystal/template/support/tilt.rb', line 60

def self.capture context, &block
  context.capture_haml &block
end

.concat(context, value) ⇒ Object



64
65
66
# File 'lib/crystal/template/support/tilt.rb', line 64

def self.concat context, value
  context.haml_concat value
end

.get_output(context) ⇒ Object



56
57
58
# File 'lib/crystal/template/support/tilt.rb', line 56

def self.get_output context
  context.haml_buffer.buffer
end