-
-
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
If a property is not provided, then its value is null / blank. Can we instead keep the 'placeholder'? #562
Comments
Couldn't you use the
This uses standard liquid template features, even though you have to type "the tag" twice. |
Thanks for the prompt reply. There are two issues with the default filter:
How can I submit a request that this be considered / make that an ‘optional behavior’ / setting? |
Can you try implementing a custom member provider that would return what you want? It's extensible. You could write one that wraps the current implementation. For the |
I'm not sure what you mean by "custom member provider". Are you referring to Customizing object accessors ? https://github.com/sebastienros/fluid#customizing-object-accessors Is it possible to override GetValue as per below. I tried, but the WriteLines don't even get hit.
|
I am also interested in this because its easier for the user to spot errors in their template. |
Any news on this topic? I would like to have something like this as well |
If a property (object/variable) is not provided in the model, then its value is null / blank. Is there some option that would instead keep the 'placeholder' (variable name enclosed in double curly braces)?
E.g., for below example, rather than returning
Temperature Humidity
it would return
Temperature {{intSelected}} Humidity {{intSelected}}
The text was updated successfully, but these errors were encountered: