Skip to content

Dev mode and template sources#395

Merged
sunng87 merged 19 commits intomasterfrom
feature/template-source
Dec 11, 2020
Merged

Dev mode and template sources#395
sunng87 merged 19 commits intomasterfrom
feature/template-source

Conversation

@sunng87
Copy link
Copy Markdown
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 force-pushed the feature/template-source branch from 202d9ad to d8f60c1 Compare November 30, 2020 03:51
@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.

1 participant