Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add `file` tag for Mustache layouts

For when you want to use something more descriptive than `title` in your layout.
  • Loading branch information...
commit 4f81074ad4a0a308bfca9929c7ffbd69ea4a691c 1 parent 97a9718
Charlie Sharpsteen Sharpie authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rocco/layout.rb
4 lib/rocco/layout.rb
View
@@ -15,6 +15,10 @@ def title
File.basename(@doc.file)
end
+ def file
+ @doc.file
+ end
+
def sections
num = 0
@doc.sections.map do |docs,code|
Please sign in to comment.
Something went wrong with that request. Please try again.