Sha256: e59516235f9db99f04a701aea41476bdaea6819fbc4289ce451e2263aaf3827d

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

class Shortcode::Configuration
  # Sets the template parser to use, supports :erb and :haml, default is :haml
  attr_accessor :template_parser

  # Sets the template parser to use, supports :erb and :haml, default is :haml
  attr_accessor :template_path

  # Set the supported block_tags
  attr_accessor :block_tags

  # Set the supported self_closing_tags
  attr_accessor :self_closing_tags

  # Set the quotation sign used for attribute values. Defaults to double quote (")
  attr_accessor :quotes

  def initialize
    @template_parser    = :haml
    @template_path      = "app/views/shortcode_templates"
    @block_tags         = []
    @self_closing_tags  = []
    @quotes             = '"'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shortcode-0.2.0 lib/shortcode/configuration.rb