class Tilt::TypeScriptTemplate
Public Instance Methods
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/typescript.rb 22 def evaluate(scope, locals, &block) 23 @output ||= TypeScript::Node.compile(data, *@option_args) 24 end
prepare()
click to toggle source
# File lib/tilt/typescript.rb 8 def prepare 9 @option_args = [] 10 11 options.each do |key, value| 12 next unless value 13 14 @option_args << "--#{key}" 15 16 if value != true 17 @option_args << value.to_s 18 end 19 end 20 end