Class: Bridgetown::Converters::RubyTemplates
- Inherits:
-
Bridgetown::Converter
- Object
- Plugin
- Bridgetown::Converter
- Bridgetown::Converters::RubyTemplates
- Defined in:
- lib/bridgetown-core/converters/ruby_templates.rb
Instance Method Summary collapse
Methods inherited from Bridgetown::Converter
#determine_template_engine, #initialize, input, #inspect, #line_start, #matches, #output_ext, support_slots, supports_slots?, template_engine
Methods inherited from Plugin
Methods included from Prioritizable
Constructor Details
This class inherits a constructor from Bridgetown::Converter
Instance Method Details
#convert(content, convertible) ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/bridgetown-core/converters/ruby_templates.rb', line 66 def convert(content, convertible) rb_view = Bridgetown::PureRubyView.new(convertible) results = rb_view.instance_eval( content, convertible.path.to_s, line_start(convertible) ) rb_view._output_buffer || results.to_s end |