Method: Webby.load_files
- Defined in:
- lib/webby.rb
.load_files ⇒ Object
Scan the layouts/ folder and the content/ folder and create a new Resource object for each file found there.
121 122 123 124 125 126 127 |
# File 'lib/webby.rb', line 121 def self.load_files ::Find.find(site.layout_dir, site.content_dir) do |path| next unless test ?f, path next if path =~ ::Webby.exclude Resources.new path end end |