Merge pull request #51 from Sharpie/patch-1

Add `file` tag for Mustache layouts
This commit is contained in:
Mike West 2011-06-12 05:28:34 -07:00
commit dde147a171

View File

@ -15,6 +15,10 @@ class Rocco::Layout < Mustache
File.basename(@doc.file) File.basename(@doc.file)
end end
def file
@doc.file
end
def sections def sections
num = 0 num = 0
@doc.sections.map do |docs,code| @doc.sections.map do |docs,code|