lib/semi-static/layout.rb in zzot-semi-static-0.0.2 vs lib/semi-static/layout.rb in zzot-semi-static-0.0.3
- old
+ new
@@ -1,10 +1,19 @@
module SemiStatic
+ ##
+ # Layout embeds the formatted output of a Convertable within a large document.
class Layout < Base
include Convertable
+ ##
+ # The Layout's name
attr_reader :name
+ ##
+ # Initialize a new Layout
+ #
+ # +site+: The Site we belong to.
+ # +path+: The path to the source file.
def initialize(site, path)
super
@metadata = [ :layout ]
@name = File.basename(source_path, source_ext)