class Opal::BuilderProcessors::OpalERBProcessor
better.
a look at docs/templates.md to understand this subsystem
compile templates, which will in turn output HTML. Take
Unlike below processors, OpalERBProcessor can be used to
first get compiled to Ruby code using ERB, then with Opal.
This handler is for files named “.opalerb”, which ought to
def initialize(*args)
def initialize(*args) super @source = prepare(@source, @filename) end
def prepare(source, path)
def prepare(source, path) ::Opal::ERB::Compiler.new(source, path).prepared_source end
def requires
def requires ['erb'] + super end