Sha256: c376d6fba3f760c795920a38adc226bbadf646bfc6911a39b7ab242bdb57cd2f

Contents?: true

Size: 571 Bytes

Versions: 4

Compression:

Stored size: 571 Bytes

Contents

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)
        end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zzot-semi-static-0.0.3 lib/semi-static/layout.rb
zzot-semi-static-0.0.4 lib/semi-static/layout.rb
zzot-semi-static-0.0.5 lib/semi-static/layout.rb
zzot-semi-static-0.0.6 lib/semi-static/layout.rb