Class: Opal::Sprockets::ERB
- Defined in:
- lib/opal/sprockets/erb.rb
Instance Attribute Summary
Attributes inherited from Processor
#context, #data, #input, #sprockets
Instance Method Summary collapse
Methods inherited from Processor
cache_key, call, #initialize, #logical_path, #process_required_trees, #process_requires, reset_cache_key!, #sprockets_extnames_regexp
Constructor Details
This class inherits a constructor from Opal::Sprockets::Processor
Instance Method Details
#call ⇒ Object
7 8 9 10 11 |
# File 'lib/opal/sprockets/erb.rb', line 7 def call compiler = Opal::ERB::Compiler.new(@data, logical_path.sub(/#{Opal::REGEXP_START}templates\//, '')) @data = compiler.prepared_source super end |