Sha256: 27e22a2b843a2eef7fcaa1523f15a2bfc148e439f1be6aec80e15adb903103cf
Contents?: true
Size: 468 Bytes
Versions: 5
Compression:
Stored size: 468 Bytes
Contents
require "ostruct" require "pathname" require "requirejs/rails" module Requirejs module Rails class Builder def initialize(config) @config = config end def build @config.tmp_dir end def generate_rjs_driver templ = Erubis::Eruby.new(@config.driver_template_path.read) @config.driver_path.open('w') do |f| f.write(templ.result(@config.get_binding)) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems