Relative path partials in dust #66

Open
jmoyers opened this Issue Oct 7, 2012 · 6 comments

Projects

None yet

6 participants

@jmoyers
jmoyers commented Oct 7, 2012

Based on this:
https://github.com/visionmedia/express/blob/master/lib/view.js#L61-63

I have a directory structure like so:

views\
     viewName\
         index.dust
         header.dust
         footer.dust

I'd like to be able to write my template like this, in this case:

index.dust

{>header/}
Contents
{>footer/}

Trying to keep my templates separated as logical reusable components.

https://github.com/visionmedia/consolidate.js/blob/master/lib/consolidate.js#L146-150

Would you accept a patch that used options.filename to try a relative pathname for a partial before falling back to views + partial name + ext?

chovy commented Oct 7, 2012

+1 for relative paths.

Owner
tj commented Oct 7, 2012

yeah relative gets a +1 from me

yeah relative gets a +1 from me

same here

jmoyers commented Aug 1, 2014

My work responsibilities have changed pretty significantly, just haven't
gotten back to it. As I recall, its relatively minor changes if somebody
wants to pick it up to get it merged in.

On Thu, Jul 31, 2014 at 6:40 AM, Erik Müller notifications@github.com
wrote:

yeah relative gets a +1 from me

same here


Reply to this email directly or view it on GitHub
#66 (comment)
.

mbrgm commented Nov 1, 2014

+1

mendlik commented Feb 28, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment