Sha256: 2edcd2008c8c22fb8368642bc4ff591bea2e451a1fec6564b456f256a3984f89
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true module Dry class View module Tilt module Haml 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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-view-0.7.1 | lib/dry/view/tilt/haml.rb |
dry-view-0.7.0 | lib/dry/view/tilt/haml.rb |
dry-view-0.6.0 | lib/dry/view/tilt/haml.rb |