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)
|
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|
|
||||||
|
Loading…
Reference in New Issue
Block a user