Sha256: 736daff0b71747c2160c78be41c7e305b2bc1b27e5335373b5cc4038639cc794
Contents?: true
Size: 781 Bytes
Versions: 5
Compression:
Stored size: 781 Bytes
Contents
module Owl module Lib class Path DATA_PATH = 'data' INDEX_PATH = 'index' NOT_FOUND_PATH = 'not-found' POST_PATH = "post" PAGE_PATH = "page" def self.cabi_id(p, opts={}) p = p[1..-1] [DATA_PATH, p.gsub('/', ':'), INDEX_PATH].compact.join(':') end def self.path(p) self.cabi_id(p) end def self.page_path(p) self.cabi_id( ['/', PAGE_PATH, p].join('/') ) end def self.partial_cabi_id(p) p = "_" + p [Owl::Lib::Theme.instance.path, Owl::Lib::Theme::PARTIALS_PATH, p].join(':') end def self.all_posts_path [DATA_PATH, POST_PATH, "**/#{INDEX_PATH}.*"].join(':') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
owl-cms-0.1.5 | core/classes/path.rb |
owl-cms-0.1.3 | core/classes/path.rb |
owl-cms-0.1.2 | core/classes/path.rb |
owl-cms-0.1.1 | core/classes/path.rb |
owl-cms-0.1.0 | core/classes/path.rb |