Method: Ice::Handlers::Coffeekup.call

Defined in:
lib/ice/handlers/coffeekup/handler.rb

.call(template) ⇒ Object



22
23
24
25
26
27
28
29
30
31
# File 'lib/ice/handlers/coffeekup/handler.rb', line 22

def self.call(template)
  <<-COFFEEKUP
    template_source = <<-COFFEEKUP_TEMPLATE
      #{template.source}
    COFFEEKUP_TEMPLATE
    #{Base.variables}

    Ice::Handlers::Coffeekup.convert_template(template_source, variables.merge(local_assigns))
  COFFEEKUP
end