Fixing a bug in layout.rb's template directory location

Should take care of GH-31.  Thanks to [Karel Minarik][1]

[1]: http://www.karmi.cz
This commit is contained in:
Mike West 2011-03-17 19:27:53 +01:00
parent b993200fc1
commit d495074320

View File

@ -2,7 +2,7 @@ require 'mustache'
require 'pathname' require 'pathname'
class Rocco::Layout < Mustache class Rocco::Layout < Mustache
self.template_path = "#{File.dirname(__FILE__)}/.." self.template_path = "#{File.dirname(__FILE__)}/."
def initialize(doc, file=nil) def initialize(doc, file=nil)
@doc = doc @doc = doc