lib/troy/site.rb in troy-0.0.18 vs lib/troy/site.rb in troy-0.0.19

- old
+ new

@@ -58,11 +58,15 @@ FileUtils.rm_rf(root.join("public")) end # # - def export_pages - pages.each(&:save) + def export_pages(file) + file = File.expand_path(file) if file + + pages + .select {|page| file.nil? || page.path == file } + .each(&:save) end # # def export_assets