Sha256: d7c7ce6ae045703412dc5ac46dd604ba59e71b97520e114948fe493c09716b15

Contents?: true

Size: 326 Bytes

Versions: 68

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

68 entries across 68 versions & 1 rubygems

Version Path
bridgetown-core-1.1.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.beta2 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha11 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha10 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha9 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha8 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha7 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha6 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha5 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.5 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha4 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha2 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.0.0.alpha1 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.4 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.3 lib/bridgetown-core/tags/with.rb
bridgetown-core-0.21.2 lib/bridgetown-core/tags/with.rb