Merge pull request #419 from trans/metadata

Add support for embedded page metadata.
This commit is contained in:
bootstraponline
2012-08-01 16:05:10 -07:00
4 changed files with 97 additions and 0 deletions
+8
View File
@@ -217,6 +217,14 @@ module Gollum
markup_class.toc
end
# Public: Embedded metadata.
#
# Returns Hash of metadata.
def meta_data()
formatted_data if markup_class.metadata == nil
markup_class.metadata
end
# Public: The format of the page.
#
# Returns the Symbol format of the page. One of: