Class: Mech::Compiler::Format::JavaScript
- Inherits:
-
Mech::Compiler::Format
- Object
- Mech::Compiler::Format
- Mech::Compiler::Format::JavaScript
- Defined in:
- lib/mech/compiler/format/java_script.rb
Instance Method Summary collapse
Methods inherited from Mech::Compiler::Format
#initialize, #output, #with_template
Methods included from Mech::Configurator
Constructor Details
This class inherits a constructor from Mech::Compiler::Format
Instance Method Details
#compile(data, params = {}) ⇒ Object
9 10 11 12 |
# File 'lib/mech/compiler/format/java_script.rb', line 9 def compile(data, params = {}) @data = data with_template end |
#tmp_path ⇒ Object
5 6 7 |
# File 'lib/mech/compiler/format/java_script.rb', line 5 def tmp_path @tmp_path ||= File.join(config.tmp_path, 'java_script.erb') end |