Closed mkelly12 closed 13 years ago
Templates in paths like the following
/Users/dave(old)/Sites/app/megan.jst
/Users/dave(old)/Sites/app/fox.jst
are not shortened to the templates megan and fox, but are rather added to the JST object with their full paths.
megan
fox
Regexp.escape(base_path) before doing the gsub fixes this problem.
Regexp.escape(base_path)
Thanks for the patch. That's a nasty little oversight. Merged to master, will go out with the next release.
Templates in paths like the following
/Users/dave(old)/Sites/app/megan.jst
/Users/dave(old)/Sites/app/fox.jst
are not shortened to the templates
megan
andfox
, but are rather added to the JST object with their full paths.Regexp.escape(base_path)
before doing the gsub fixes this problem.