-
Notifications
You must be signed in to change notification settings - Fork 15
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
Use template engine that supports nested objects #3
Comments
I used the |
https://github.com/sindresorhus/pupa |
@mokkabonna Tried pupa today and it has deep nesting and seems to work OK. Will do a release today with some changes to the template naming, as well as some new helper functions. Will start adding proper tests after that. |
Sounds good, thanks! |
@mokkabonna try it and tell me if you find issues. |
That seems to be working just as expected, thanks! Tested with deep nesting. Closing. I see you skipped using a templating library at all. |
Yep :) No need to for now. Will clean it up a bit when I get more time. |
Would you be willing to change the template engine you are currently using to one that supports nested objects? Or at least property names with a dot in them?
I have created this plugin: https://github.com/mokkabonna/vue-vuelidate-jsonschema
It exposes to $params the schema that belongs to the property:
But I can't reference it in the message templates since string-template does not support nested objects. Or object names with dots in them. There is a PR open to Matt-Esch/string-template#19 fix that, but it's quite old.
One option is https://www.npmjs.com/package/es6-template-strings
The text was updated successfully, but these errors were encountered: