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)
|
||||
end
|
||||
|
||||
def file
|
||||
@doc.file
|
||||
end
|
||||
|
||||
def sections
|
||||
num = 0
|
||||
@doc.sections.map do |docs,code|
|
||||
|
Loading…
Reference in New Issue
Block a user