Sha256: 9e51b343de4eb04d499d3064b191d75ff9efe5838d9b71d14545fcc1c813a019
Contents?: true
Size: 275 Bytes
Versions: 3
Compression:
Stored size: 275 Bytes
Contents
require 'tilt/template' require 'babel/transpiler' module Tilt class BabelTemplate < Template def prepare options[:filename] ||= file end def evaluate(scope, locals, &block) @output ||= Babel::Transpiler.transform(data)["code"] end end end
Version data entries
3 entries across 3 versions & 3 rubygems