lib/brief/model.rb in brief-1.9.12 vs lib/brief/model.rb in brief-1.9.13

- old
+ new

@@ -27,10 +27,14 @@ Brief::Model.classes << self end module AccessorMethods + def title + document_title + end + def document_title data.try(:[], :title) || extracted_content_data.try(:title) || path.basename.to_s .gsub(/\.html.md/,'') @@ -263,10 +267,10 @@ def section_mappings(*args) definition.send(:section_mappings, *args) end - def generate_template_content_from(object, include_frontmatter = true) + def generate_template_content_from(object={}, include_frontmatter = true) @erb ||= ERB.new(template_body) content = @erb.result(binding) frontmatter = object.slice(*attribute_names) base = ''