Module: Dry::View::Tilt::ERB Private

Defined in:
lib/dry/view/tilt/erb.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.activateObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
20
# File 'lib/dry/view/tilt/erb.rb', line 17

def self.activate
  Tilt.default_mapping.register ErbseTemplate, "erb"
  self
end

.requirementsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
10
11
12
13
14
15
# File 'lib/dry/view/tilt/erb.rb', line 7

def self.requirements
  ["dry/view/tilt/erbse", <<~ERROR]
    dry-view requires erbse for full compatibility when rendering .erb templates (e.g. implicitly capturing block content when yielding)

    To ignore this and use another engine for .erb templates, deregister this adapter before calling your views:

    Dry::View::Tilt.deregister_adapter(:erb)
  ERROR
end