jasmine-headless-webkit/lib/jasmine/headless/jst_template_cache.rb

27 lines
394 B
Ruby
Raw Normal View History

2012-02-09 02:41:02 +00:00
require 'sprockets/jst_processor'
require 'digest/sha1'
require 'fileutils'
module Jasmine
module Headless
class JSTTemplateCache < CacheableAction
def initialize(file, data)
@file = file
@data = data
end
class << self
def cache_type
"jst_template"
end
end
def action
@data
end
end
end
end