lib/bloggit/page.rb in bloggit-1.0.3 vs lib/bloggit/page.rb in bloggit-1.0.7

- old
+ new

@@ -71,9 +71,17 @@ end class << self private :new + def find_by_tag(tag) + find_by_tags( [tag] ) + end + + def find_by_tags(tags=[]) + + end + def from_file(path, site=nil) path = File.expand_path(path) raise "File must exist" unless File.exists?( path ) yml_docs = YAML::load_stream( File.open(path, 'r') ) raise "page is missing a document part" if yml_docs.documents.length != 2 \ No newline at end of file