Sha256: 5a0f32e96b99b97a658f965cff17678454cfb8f4058db2d9d36ace17c6fa3230

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

require 'smart_properties'

module BetterHtml
  class Config
    include SmartProperties

    property :partial_tag_name_pattern, default: /\A[a-z0-9\-\:]+\z/
    property :partial_attribute_name_pattern, default: /\A[a-zA-Z0-9\-\:]+\z/
    property :allow_single_quoted_attributes, default: true
    property :allow_unquoted_attributes, default: false
    property :javascript_safe_methods, default: ['to_json']
    property :javascript_attribute_names, default: [/\Aon/i]
    property :template_exclusion_filter
    property :lodash_safe_javascript_expression, default: [/\AJSON\.stringify\(/]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
better_html-0.0.12 lib/better_html/config.rb
better_html-0.0.11 lib/better_html/config.rb
better_html-0.0.10 lib/better_html/config.rb