lib/webby/builder.rb in TwP-webby-0.9.0 vs lib/webby/builder.rb in TwP-webby-0.9.1

- old
+ new

@@ -33,12 +33,12 @@ # def create( page, opts = {} ) tmpl = opts[:from] raise Error, "template not given" unless tmpl - name = ::Webby::Resources::File.basename(page) - ext = ::Webby::Resources::File.extname(page) + name = ::Webby::Resources.basename(page) + ext = ::Webby::Resources.extname(page) dir = ::File.dirname(page) dir = '' if dir == '.' if tmpl.pathmap('%n') =~ %r/^_/ page = ::File.join(::Webby.site.content_dir, dir, '_'+name) @@ -154,12 +154,9 @@ # touch the cairn so we know when the website was last generated FileUtils.touch ::Webby.cairn nil end - - - private # Scan the <code>layouts/</code> folder and the <code>content/</code> # folder and create a new Resource object for each file found there. # def load_files