-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any configuration option to have the parser leave uncaptured variables unchanged? #603
Comments
We would find the same feature helpful in cases where we have a master template that can be partially rendered in one stage and then the remaining variables rendered in a following stage. |
@drewburlingame looks like you want templates to generate templates, which technically is doable by rendering something that contains |
@sebastienros yeah that makes sense. Our situation is complicated by the fact that our customers are not aware of the different stages so they don't know which variables to escape. In answer to your question about how to handle |
Correct. To be able to do that we need to change Maybe something to do at the same time that the member accessors would be refactored to accept any property by default (not allow-listed by default like today). |
I'm trying to find a way to configure the parser to leave such variables unmodified in the output...
Consider the following template:
If we send a dictionary (as the model) only with the following value:
The output is:
In our scenario, this error could go easily unnoticed, so we want to have the parser to leave
{{Name}}
unchanged...Is it possible?
The text was updated successfully, but these errors were encountered: