Sha256: eb76b718eabda34db4640f08ac60d11203efdf0c561bd8d38adce14096eda418

Contents?: true

Size: 845 Bytes

Versions: 2

Compression:

Stored size: 845 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

  # Allows templates to be set from strings rather than read from the filesystem
  attr_accessor :templates

  # 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"
    @templates          = nil
    @block_tags         = []
    @self_closing_tags  = []
    @quotes             = '"'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shortcode-0.3.1 lib/shortcode/configuration.rb
shortcode-0.3.0 lib/shortcode/configuration.rb