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:
parent
97a971897f
commit
4f81074ad4
@ -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|
|
||||
|
Loading…
Reference in New Issue
Block a user