module Opal::Erubi
Constants
- VERSION
Public Class Methods
compile_erubi(source, path)
click to toggle source
# File lib/opal/erubi.rb, line 12 def self.compile_erubi(source, path) ::Erubi::Engine.new(source.to_s, bufval: "__buf", postamble: "_buf.join }", escape: true, src: "require 'erubi';Template.new('#{path}') { |__buf| ", filename: path).src.dup end