Sha256: 33ebf7259478888d8467300a21c8331417b385276114e359bcfef58b7e5a48d6

Contents?: true

Size: 725 Bytes

Versions: 8

Compression:

Stored size: 725 Bytes

Contents

module Locomotive
  module Builder
    module Liquid
      module Tags
        module Csrf

          class Param < ::Liquid::Tag

            def render(context)
              %{<input type="hidden" name="authenticity_token" value="helloworld" />}
            end

          end

          class Meta < ::Liquid::Tag

            def render(context)
              %{
                <meta name="csrf-param" content="authenticity_token" />
                <meta name="csrf-token" content="helloworld" />
              }
            end

          end

        end

        ::Liquid::Template.register_tag('csrf_param', Csrf::Param)
        ::Liquid::Template.register_tag('csrf_meta', Csrf::Meta)

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotivecms_builder-1.0.0.alpha8 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha7 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha6 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha5 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha4 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha3 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha2 lib/locomotive/builder/liquid/tags/csrf.rb
locomotivecms_builder-1.0.0.alpha1 lib/locomotive/builder/liquid/tags/csrf.rb