AST rendering for Handlebars #1869
HuJingKang
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
This may be possible, but it would probably be a very time-consuming and complex task. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jaylinski Recently I wrote a simple demo for this. Could you please help me to review the code and make some suggestions? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using Handlebars for SSR in NodeJS.
By reading the source code, I learned that the rendering process is:
AST -> opcodes -> templateSpec -> eval(templateSpec) -> result.
Since the eval operation is time-consuming, I guess that if the rendering process is optimized to AST -> result, the performance may be greatly improved.
Could you please evaluate whether this optimization is feasible? Or is this an implementation that you have considered but was abandoned for some reason?
Beta Was this translation helpful? Give feedback.
All reactions