Open yangchenyun opened 12 years ago
Hey yangchenyun,
Thanks for trying out hulk-hogan.
Yeah you might be correct that the paths are only relative to what you set your views folder to be.
It might be better, like you said, for it to be relative to the actual file itself.
Hi Van, Thanks for this elegant work. This is the most reasonable hogan adapter I found. I will try to read this code and tweak it later.
Best,
杨晨昀 Steven Yang / Designer and Web Developer blog.yangchenyun.com
On Wednesday, July 18, 2012 at 11:04 PM, Quang Van wrote:
Hey yangchenyun,
Thanks for trying out hulk-hogan.
Yeah you might be correct that the paths are only relative to what you set your views folder to be.
It might be better, like you said, for it to be relative to the actual file itself.
Reply to this email directly or view it on GitHub: https://github.com/quangv/hulk-hogan/issues/13#issuecomment-7071443
Hey Yangchenyun,
Thanks I'll leave the issue open for now...
-q
Thanks for that, will close this when I finished.
杨晨昀 Steven Yang / Designer and Web Developer blog.yangchenyun.com
On Wednesday, July 25, 2012 at 2:51 AM, Quang Van wrote:
Hey Yangchenyun,
Thanks I'll leave the issue open for now...
-q
Reply to this email directly or view it on GitHub: https://github.com/quangv/hulk-hogan/issues/13#issuecomment-7228581
Is this similar to #6 ?
Exactly.
I have the following file structure
layout.hulk
containsindex.hulk
containsWhen
index.mustache
is rendered by express, it fails to load thepartial.hulk
. However, when I put it under/views
, it works.I think the relative path when finding partials should be resolved to current template when finding partials.