quangv / hulk-hogan

Hogan.js for Express with support for Template Partials.
MIT License
37 stars 2 forks source link

Partials Relative Paths #6

Closed quangv closed 12 years ago

quangv commented 12 years ago

If you are inside a partial, and want to reference other partials, what should the paths resolve to? locally?

Right now if you have partials

views/article.hulk
views/sub/list.hulk
views/sub/tab.hulk

to call sub/list.hulk from article.hulk you would do {{> sub/list}} to call sub/tab.hulk from sub/list.hulk currently you would also have to call it like {{> sub/tab}}

but would it make more sense if it was relative paths, and you could write {{> tab}} and also {{> ../article}} ?

quangv commented 12 years ago

discuss relative paths on dupe #13