Module: Plezi::Base::RenderERB
- Extended by:
- HasStore
- Defined in:
- lib/plezi/render/erb.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HasStore
Class Method Details
.call(filename, context, &block) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/plezi/render/erb.rb', line 9 def call(filename, context, &block) return unless defined? ::ERB return unless File.exist?(filename) engine = load_engine(filename) engine.result(context, &block) end |