Class: BootWheel::Internals::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/boot_wheel/internals/renderer.rb

Defined Under Namespace

Classes: HelpersStub

Class Method Summary collapse

Class Method Details

.render(template = nil, inline: nil, layout: nil, locals: {}) ⇒ Object

TEMPORARY COMPATIBILITY SHIM - NOT INTENDED FOR REAL USE Might want to extract something “Official” into Little Wheels for testing outside a Rails app.

Raises:

  • (NotImplementedError)


40
41
42
43
44
# File 'lib/boot_wheel/internals/renderer.rb', line 40

def self.render(template=nil,inline: nil, layout: nil, locals: {})
  raise NotImplementedError unless template.nil?

  ERB.new(inline, trim_mode: "-<>").result_with_hash(locals)
end