Class: Tilt::CaracalTemplate

Inherits:
Template
  • Object
show all
Defined in:
lib/tilt/caracal.rb

Instance Method Summary collapse

Instance Method Details

#precompiled_template(locals) ⇒ Object



17
18
19
# File 'lib/tilt/caracal.rb', line 17

def precompiled_template(locals)
  @code
end

#prepareObject



9
10
11
12
13
14
15
# File 'lib/tilt/caracal.rb', line 9

def prepare
  @code =<<-RUBY
    Caracal::Document.render do |docx|
      #{ data }
    end
  RUBY
end