lib/rack/blogengine/doc_parser.rb in rack-blogengine-0.0.2 vs lib/rack/blogengine/doc_parser.rb in rack-blogengine-0.0.3
- old
+ new
@@ -10,10 +10,11 @@
#
# HTML contains Content, Style, JS etc...
# Parse in .content Documents.
# @param target.
+ # @return [Hash] Documents
def self.parseInDocuments(target)
@target = target
documents = []
@@ -65,9 +66,10 @@
end
end
# Replace layout placeholder with content from .content file
# @param layout
+ # return [String] layout placeholder replaced with content
def self.fillFileContents(layout)
layout.gsub! "{title}", @title
layout["{content}"] = @content
end
end
\ No newline at end of file