Sha256: b836cca0a0bca039134af7bf580d226ab5590fbc170d6afd22a2cd0c7594959a

Contents?: true

Size: 483 Bytes

Versions: 17

Compression:

Stored size: 483 Bytes

Contents

class Stasis
  class Options

    @@template_options = Hash.new

    # Set template engine options.
    #
    # type: string, template extension, e.g 'haml'
    # opts: hash, template options
    def self.set_template_option(type, opts={})
        @@template_options[type] = opts
    end

    # Retrieve template engine options if available.
    # Returns empty hash if no options set.
    def self.get_template_option(type)
        @@template_options[type] || {}
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
stasis-0.2.0 lib/stasis/options.rb
stasis-0.2.0.pre lib/stasis/options.rb
stasis-0.1.23 lib/stasis/options.rb
stasis-0.1.22 lib/stasis/options.rb
stasis-0.1.21 lib/stasis/options.rb
stasis-0.1.20 lib/stasis/options.rb
stasis-0.1.19 lib/stasis/options.rb
stasis-0.1.18 lib/stasis/options.rb
stasis-0.1.17 lib/stasis/options.rb
stasis-0.1.16 lib/stasis/options.rb
stasis-0.1.15 lib/stasis/options.rb
stasis-0.1.14 lib/stasis/options.rb
stasis-0.1.13 lib/stasis/options.rb
stasis-0.1.12 lib/stasis/options.rb
stasis-0.1.11 lib/stasis/options.rb
stasis-0.1.10 lib/stasis/options.rb
stasis-0.1.9 lib/stasis/options.rb