Add file tag for Mustache layouts

For when you want to use something more descriptive than `title` in your layout.
This commit is contained in:
Charlie Sharpsteen 2011-06-02 16:30:17 -07:00
parent 97a971897f
commit 4f81074ad4

View File

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