Class: Slim::Rails::RegisterEngine::Transformer
- Inherits:
-
Object
- Object
- Slim::Rails::RegisterEngine::Transformer
- Defined in:
- lib/slim-rails/register_engine.rb
Class Method Summary collapse
Class Method Details
.call(input) ⇒ Object
5 6 7 8 |
# File 'lib/slim-rails/register_engine.rb', line 5 def self.call(input) context = input[:environment].context_class.new(input) Slim::Template.new(input[:name]) { input[:data] }.render(context) end |