Merge pull request #51 from Sharpie/patch-1
Add `file` tag for Mustache layouts
This commit is contained in:
commit
dde147a171
@ -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