class Bridgetown::Converters::RubyTemplates

Public Instance Methods

convert(content, convertible) click to toggle source
# File lib/bridgetown-core/converters/ruby_templates.rb, line 9
def convert(content, convertible)
  erb_view = Bridgetown::ERBView.new(convertible)
  erb_view.instance_eval(
    content, convertible.relative_path.to_s, line_start(convertible)
  ).to_s
end