module Liquid::Autoescape

Constants

ENABLED_FLAG

The context variable that stores the auto-escape state

@private

VERSION

Public Class Methods

configuration() click to toggle source

The current auto-escape configuration

@return [Liquid::Autoescape::Configuration]

# File lib/liquid/autoescape.rb, line 28
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source

Configure Liquid auto-escaping

@yieldparam [Liquid::Autoescape::Configuration] config The auto-escape configuration

# File lib/liquid/autoescape.rb, line 16
def self.configure
  yield(configuration)
end
reconfigure() click to toggle source

Restore the configuration's default values

# File lib/liquid/autoescape.rb, line 21
def self.reconfigure
  configuration.reset
end