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

Extract template compilation from loadTemplate() to compileTemplate() #41

Closed
wants to merge 1 commit into from

Conversation

ericf
Copy link
Owner

@ericf ericf commented Oct 17, 2013

This provides a hook for customizing how templates are compiled, allowing for pre- and post- processing of templates compiled by the Handlebars compiler.

Fixes #39

Todos

  • Make code changes
  • Update README docs
  • Add HISTORY entry
  • Test in real-world apps

This provides a hook for customizing how templates are compiled,
allowing for pre- and post- processing of templates compiled by the
Handlebars compiler.

Fixes #39
@ghost ghost assigned ericf Oct 17, 2013

callback(null, compiledTemplate);
},

loadPartials: function (options, callback) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

were you planning on calling the public method createTemplate() as per the title of the pull request or was that a typo?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? Where's the typo?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title being: Extract template compilation from loadTemplate() to createTemplate() There's no createTemplate method that you added or part of your module. Was just wondering if you had planned to call it that or not.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, typo, meant to say compileTemplate().

@ericf
Copy link
Owner Author

ericf commented Jul 30, 2014

Closing in favor of #68 (Rewrite with Promises).

@ericf ericf closed this Jul 30, 2014
@ericf ericf deleted the compile-template branch August 12, 2014 05:50
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.

Intercepting Template Before Compile
2 participants