Feature Request: Dynamic tokens in the pest file #972
NickLarsenNZ
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I understand the Parse struct(s) is built at compile time, but maybe there can be something added to the generated code to inject the overriden tokens. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to use
tera
for templating files, but I want to be able to use different delimeters.I see they have hard coded the delimeters https://github.com/Keats/tera/blob/93c92b97bf54799dc14aa859cc8628fe6e8493b5/src/parser/tera.pest#L148-L155 which is preventing Keats/tera#343 from progressing.
I thought it would be nice so that the application can provide some dynamic tokens to pest at runtime (eg: from user config).
I hope the above illustrates the point, even if not using desirable syntax.
Beta Was this translation helpful? Give feedback.
All reactions