Class: Tilt::SerbeaTemplate

Inherits:
ErubiTemplate
  • Object
show all
Defined in:
lib/serbea.rb

Instance Method Summary collapse

Instance Method Details

#encodingObject



21
22
23
# File 'lib/serbea.rb', line 21

def encoding
  @src.encoding
end

#prepareObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/serbea.rb', line 10

def prepare
  @options.merge!(
    outvar: "@_erbout",
    bufval: "Serbea::OutputBuffer.new", 
    literal_prefix: "{%",
    literal_postfix: "%}",
    engine_class: Serbea::TemplateEngine
  )
  super
end