Sha256: d7c7ce6ae045703412dc5ac46dd604ba59e71b97520e114948fe493c09716b15

Contents?: true

Size: 326 Bytes

Versions: 69

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  module Tags
    class WithTag < Liquid::Block
      def render(context)
        region_name = @markup.strip
        context["content_with_region_#{region_name}"] = super
        ""
      end
    end
  end
end

Liquid::Template.register_tag("with", Bridgetown::Tags::WithTag)

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
bridgetown-core-0.21.2 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.1 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.0.beta4 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.0.beta2 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.20.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.19.3 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.19.2 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.19.1 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.19.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.6 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.5 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.4 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.3 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.2 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.1 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.18.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.17.1 lib/bridgetown-core/tags/with.rb