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