Sha256: a18dc9170762972091f600019fba51affefa9767513ac4fed689f0ddbd6f07e6
Contents?: true
Size: 428 Bytes
Versions: 1
Compression:
Stored size: 428 Bytes
Contents
class Condenser::EjsTemplare < Condenser::NodeProcessor def self.setup(environment) require 'ejs' unless defined?(::EJS) if !environment.path.include?(EJS::ASSET_DIR) environment.append_path(EJS::ASSET_DIR) end end def self.call(environment, input) new.call(environment, input) end def call(environment, input) input[:source] = ::EJS.transform(input[:source], {strict: true}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
condenser-0.3 | lib/condenser/templating_engine/ejs.rb |