class Cell::Erb::Template

Erbse-Tilt binding. This should be bundled with tilt. # 1.4. OR should be tilt-erbse.

Public Class Methods

engine_initialized?() click to toggle source
# File lib/cell/erb/template.rb, line 47
def self.engine_initialized?
  defined? ::Erbse::Engine
end

Public Instance Methods

initialize_engine() click to toggle source
# File lib/cell/erb/template.rb, line 51
def initialize_engine
  require_template_library "erbse"
end
precompiled_template(locals) click to toggle source
# File lib/cell/erb/template.rb, line 59
def precompiled_template(locals)
  # puts @template.call(data)
  @template.call(data)
end
prepare() click to toggle source
# File lib/cell/erb/template.rb, line 55
def prepare
  @template = ::Erbse::Engine.new # we also have #options here.
end