Sha256: b0c589a0189860c22585c174e4a9dc7f646d520b01e0c9331ec1448964f3278c

Contents?: true

Size: 292 Bytes

Versions: 53

Compression:

Stored size: 292 Bytes

Contents

module Temple
  module Filters
    # Validates temple expression with given grammar
    #
    # @api public
    class Validator < Filter
      default_options[:grammar] = Temple::Grammar

      def compile(exp)
        options[:grammar].validate!(exp)
        exp
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.7.4 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.7.3 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.7.2 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.7.1 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.7.0 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.9 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.8 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.7 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.6 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.5 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.4 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.3 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.2 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.1 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.6.0 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.5.17 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.5.16 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.5.15 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb
classiccms-0.5.14 vendor/bundle/gems/temple-0.4.0/lib/temple/filters/validator.rb