Sha256: e25a94bf700d8bd902e7ce65e18a750fb0f0a60f3288e4e6d09703a8dcfb04da
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
class Shortcode::Configuration # Sets the template parser to use, supports :erb, :haml, and :slim, default is :haml attr_accessor :template_parser # Sets the path to search for template files attr_accessor :template_path # Allows templates to be set from strings rather than read from the filesystem attr_accessor :templates # Assigns helper modules to be included in templates attr_accessor :helpers # 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 :attribute_quote_type # Allows quotes around attributes to be omitted. Defaults to false (quotes must be present around the value). attr_accessor :use_attribute_quotes def initialize @template_parser = :erb @template_path = "app/views/shortcode_templates" @templates = nil @helpers = [] @block_tags = [] @self_closing_tags = [] @attribute_quote_type = '"' @use_attribute_quotes = true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shortcode-1.1.0 | lib/shortcode/configuration.rb |
shortcode-1.0.2 | lib/shortcode/configuration.rb |
shortcode-1.0.0 | lib/shortcode/configuration.rb |