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

Do not compile partials when already compiled #24

Closed
wants to merge 1 commit into from
Closed

Do not compile partials when already compiled #24

wants to merge 1 commit into from

Conversation

TuurDutoit
Copy link
Contributor

When a page, with partials, was loaded twice, a weird bug appeared: "arguments to path.resolve must be strings".
In __express.js:10, all the partials' paths were added to templates, to be compiled (on line 30), even if they were already compiled and stored in the cache.

I fixed it with a small if statement inside the for loop. Now it works correctly, at least for me (I didn't test it thoroughly)

PS: can you publish as fast as possible to npm? I quite need it for a project of mine :)

@gsf
Copy link
Owner

gsf commented Dec 31, 2013

Sure thing! Merged with 8f245ee.

@gsf gsf closed this Dec 31, 2013
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