-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Templates are interpreted on every render. We miss opportunities to preprocess whitespace, comments, and block boundaries, which makes debugging harder.
Proposed solution
- Add a compilation pass that generates an intermediate representation.
- Pre-trim whitespace, strip comments, and resolve block boundaries up front.
- Update the renderer to iterate over compiled tags (adapt
OutputRefif needed). - Measure performance vs. the interpreted approach.
Requirements
- Compiled templates produce identical output.
- Performance measurements document the gains.
- Debugging workflows improve (parsing/rendering separated).
- Documentation explains how to compile templates.
Note
Plan to migrate this issue to the standalone Handlebars repository once it is ready.
2LoS
Metadata
Metadata
Assignees
Labels
No labels