Replies: 2 comments 4 replies
-
The downside of using a template library is that we'd take a runtime dependency. :( |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about this a little bit. What I'd really like is to use a real AST and then we can use I suspect a few people are compiling their grammars on the fly via a require hook, so this change might cause some pain for them, but it'd give us a lot more safety and access to a relatively nice toolchain. If we decide we want to stick with strings then we should probably write a simple template engine ourselves to avoid the pug dependency. |
Beta Was this translation helpful? Give feedback.
-
Perhaps using a template engine like pug? I've used pug for relatively complex recursive generation in the past, and it worked better than expected.
Beta Was this translation helpful? Give feedback.
All reactions