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
but would want to have that in a seperate json or even better yml file.
if that is not currently possible (which i guess), where would i hack that in? for example, i found pug being mentioned in node_modules/@pingy/compile/lib/compile.js but not sure where or how to continue from there...
My usecase is having text snippets I want to use consistently through the UI and change them in one place only... like the copy "continue" in some buttons and the like...
The text was updated successfully, but these errors were encountered:
You could do something like check if the engine is pug and then search for a json file that has your locals in it.
if(adapter.engineName==='pug'){constparentDir=path.basename(pathName)constdataPath=path.join(parentDir,'data.json')// TODO: Check if dataPath exists and is valid JSON// TODO: If it exists then read the json and add it to `transpilerOptions`}
I wonder how I can pass data into the pug rendering process.
I found this:
but would want to have that in a seperate json or even better yml file.
if that is not currently possible (which i guess), where would i hack that in? for example, i found pug being mentioned in
node_modules/@pingy/compile/lib/compile.js
but not sure where or how to continue from there...My usecase is having text snippets I want to use consistently through the UI and change them in one place only... like the copy "continue" in some buttons and the like...
The text was updated successfully, but these errors were encountered: