Class: Sprockets::Typescript::Template

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/sprockets/typescript/template.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(context, locals, &block) ⇒ Object



13
14
15
# File 'lib/sprockets/typescript/template.rb', line 13

def evaluate(context, locals, &block)
  @compiler.compile(context.pathname.to_s, data, context)
end

#prepareObject



9
10
11
# File 'lib/sprockets/typescript/template.rb', line 9

def prepare
  @compiler = Compiler.new
end