-
Notifications
You must be signed in to change notification settings - Fork 3
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
docs/api/rendering/ #67
Comments
Hi Squirrelly team, Is there any setting or other API which can allow to ignore undefined properties in model? |
@ValentinKostiuk you should be able to define a default filter. |
@nebrelbug, Thank you for your response! Appreciate your time. For now I've figured out tactics to parse template to AST (very useful API) find out which fields are absent in model and replace them with required defaults in model. Hope it'll work. |
@ValentinKostiuk sounds like it could be a cool plugin! |
Rendering | SquirrellyJS
Rendering a template compiles a template and then calls it with the data you pass to it.
https://squirrelly.js.org/docs/api/rendering
The text was updated successfully, but these errors were encountered: