module Dry::View::Tilt::Haml

Public Class Methods

activate() click to toggle source
# File lib/dry/view/tilt/haml.rb, line 17
def self.activate
  # Requiring hamlit/block will register the engine with Tilt
  self
end
requirements() click to toggle source
# File lib/dry/view/tilt/haml.rb, line 7
        def self.requirements
          ["hamlit/block", <<~ERROR]
            dry-view requires hamlit-block for full compatibility when rendering .haml templates (e.g. implicitly capturing block content when yielding)

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

            Dry::View::Tilt.deregister_adatper(:haml)
          ERROR
        end