Sha256: a018998ddb4a486c6551c4734eb844d8de867b3d8272eea932ef52e406413aea
Contents?: true
Size: 712 Bytes
Versions: 6
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true module Hanami class View module Tilt module Haml def self.requirements ["hamlit/block", <<~ERROR] hanami-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: Hanami::View::Tilt.deregister_adatper(:haml) ERROR end def self.activate # Requiring hamlit/block will register the engine with Tilt self end end register_adapter :haml, Haml end end end
Version data entries
6 entries across 6 versions & 1 rubygems