Module: Plezi::Base::RenderSlim
- Extended by:
- HasStore
- Defined in:
- lib/plezi/render/slim.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/slim.rb', line 9 def call(filename, context, &block) return unless defined? ::Slim return unless File.exist?(filename) engine = load_engine(filename) engine.render(context.receiver, &block) end |