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-2.0.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-2.0.0.beta2 lib/bridgetown-core/tags/with.rb
bridgetown-core-2.0.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.4 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.2 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.0.beta2 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.3.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0.beta5 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0.beta4 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0.beta2 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.2.0.beta1 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.1.0 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.1.0.beta3 lib/bridgetown-core/tags/with.rb
bridgetown-core-1.1.0.beta2 lib/bridgetown-core/tags/with.rb