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

Dev mode and template sources #395

Merged
merged 19 commits into from Dec 11, 2020
Merged

Dev mode and template sources #395

merged 19 commits into from Dec 11, 2020

Conversation

sunng87
Copy link
Owner

@sunng87 sunng87 commented Nov 23, 2020

This patch adds a new concept in handlebars called dev mode. In dev mode, we will enable some development friendly features.

The first dev mode feature is template auto-reload. In dev-mode, templates that registered from files or directory, are not cached . Changes made in template file will be reflected immediately without restart your server.

In addition to dev mode, I made template mapping a default feature since it's useful to debug any template error in any scenario.

  • tests for dev mode and template reload
  • script reload support and tests
  • docs
  • example for dev mode
  • changelog for breaking changes

@sunng87 sunng87 merged commit 996ada2 into master Dec 11, 2020
@sunng87 sunng87 deleted the feature/template-source branch December 11, 2020 12:29
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