You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2021. It is now read-only.
{
"adjust": {
"file": [
{ "xpath": "//...", "value": "new value" },
{ "jsonpath": "$....", "value": "new value" },
{ "content": "whatever string", "value": "new value" }
]
}
}
But this can also be done by refactoring the template-code:
If you need to change whatever.html in your template. You may, for example, refactor it into whatever.html.tmpl and whatever.html.json and have it render to a whatever.html during npm run build. And that does not need to have anything to do with this tool. You may choose to ignore the whatever.html.json in the dictated folder. So that it can be adjusted by users of the dictator.
Perhaps with a
.dictatorconfig.jsonlike:{ "adjust": { "file": [ { "xpath": "//...", "value": "new value" }, { "jsonpath": "$....", "value": "new value" }, { "content": "whatever string", "value": "new value" } ] } }But this can also be done by refactoring the template-code:
If you need to change
whatever.htmlin your template. You may, for example, refactor it intowhatever.html.tmplandwhatever.html.jsonand have it render to awhatever.htmlduringnpm run build. And that does not need to have anything to do with this tool. You may choose toignorethewhatever.html.jsonin the dictated folder. So that it can be adjusted by users of the dictator.