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

Compile file #1596

Merged
merged 2 commits into from
Jul 23, 2014
Merged

Compile file #1596

merged 2 commits into from
Jul 23, 2014

Conversation

ForbesLindesay
Copy link
Member

I've been wanting to add this API for ages, I just haven't got round to it. It's a much cleaner expression of intent than either doing jade.compile(fs.readFileSync(filename, 'utf8'), {filename: filename}), which I write far too often.

As an added bonus, it would be fairly easy to write a transform (or update jadeify) so that files that compiled jade in this fashion also worked client side.

ForbesLindesay added a commit that referenced this pull request Jul 23, 2014
@ForbesLindesay ForbesLindesay merged commit 6907fa9 into master Jul 23, 2014
@ForbesLindesay ForbesLindesay deleted the compileFile branch July 23, 2014 09:47
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.

None yet

1 participant