Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Mustache based partials with absolute path. #87

Closed
wants to merge 1 commit into from

Conversation

simov
Copy link
Contributor

@simov simov commented Jan 17, 2013

No description provided.

@sam3k
Copy link

sam3k commented Feb 10, 2013

How can I specify relative path instead? After consolidate 6.0 my paths started coming absolute for partials and look like this:

/opt/haibu/apps/sam3k/sam3k/package/backend/views/layouts/basic/opt/haibu/apps/sam3k/sam3k/package/backend/views/partials/debug.html.html

I personally like to determine the location of my partials which is not in the same directory as the main template.

@simov
Copy link
Contributor Author

simov commented Feb 10, 2013

Right now consolidate.js supports only partials with path relative to their parent template (the one that's been rendered).
Use this code if you need absolute path for your partials. Only one line of code is added.

@sam3k
Copy link

sam3k commented Feb 10, 2013

Turns out my issue gets resolved using this patch: https://github.com/manuelbieh/consolidate.js/commit/3dc52e9a9cef47ca143831b85cfe5f0e595554a3

@simov simov closed this Nov 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants