Sha256: 2b6dbc9dc699b5e3f1008c2bfcbd582d013be08e510538239fce9cdbe63e633f
Contents?: true
Size: 804 Bytes
Versions: 1
Compression:
Stored size: 804 Bytes
Contents
# encoding: UTF-8 module Spontaneous class Layout < Style def try_paths [["layouts", prototype.name.to_s]] end class Default < Layout # If no named layouts have been defined first look for a layout # matching the class of our owner, then default to the 'standard' # layout. def try_paths named_layout = self.class.to_directory_name(owner) [["layouts", named_layout], ["layouts", "standard"]] end end class Anonymous def initialize(template_proc) @template_proc = template_proc end def template(format = :html) @template_proc end def exists?(format = :html) true end def name nil end def schema_id nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spontaneous-0.2.0.beta1 | lib/spontaneous/layout.rb |