lib/gollum/frontend/views/layout.rb in gollum-2.0.0 vs lib/gollum/frontend/views/layout.rb in gollum-2.1.0
- old
+ new
@@ -4,17 +4,25 @@
module Views
class Layout < Mustache
include Rack::Utils
alias_method :h, :escape_html
- attr_reader :name
+ attr_reader :name, :path
def escaped_name
CGI.escape(@name)
end
def title
"Home"
+ end
+
+ def has_path
+ !@path.nil?
+ end
+
+ def base_url
+ @base_url
end
end
end
end