Sha256: b227db8dea08a1913caa68a05765563d93b951c92876eadbed9468349b381041
Contents?: true
Size: 378 Bytes
Versions: 4
Compression:
Stored size: 378 Bytes
Contents
require 'amiba/source' module Amiba module Source class Partial include Amiba::Source attr_accessor :dir, :name def initialize(path) self.dir, self.name = File.split path end def filename @filename ||= File.join("pages", @dir, "_#{@name}.haml") end alias_method :output_filename, :filename end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
amiba-1.0.2 | lib/amiba/source/partial.rb |
amiba-1.0.1 | lib/amiba/source/partial.rb |
amiba-1.0.0 | lib/amiba/source/partial.rb |
amiba-0.0.9 | lib/amiba/source/partial.rb |