lib/awestruct/front_matter_file.rb in awestruct-0.1.9 vs lib/awestruct/front_matter_file.rb in awestruct-0.2.0

- old
+ new

@@ -4,12 +4,12 @@ class FrontMatterFile < RenderableFile attr_reader :raw_page_content attr_reader :front_matter - def initialize(site, source_path, relative_source_path) - super( site, source_path, relative_source_path ) + def initialize(site, source_path, relative_source_path, options = {}) + super( site, source_path, relative_source_path, options ) @raw_page_content = '' load_page end protected @@ -43,10 +43,10 @@ begin @front_matter = YAML.load( yaml_content ) || {} @front_matter.each do |k,v| self.send( "#{k}=", v ) end - rescue=>e + rescue => e puts "error reading #{self}: #{e}" end end end end