widdershins
widdershins copied to clipboard
User defined data fields to be used in templates
Hi,
I am trying to provide user defined data to the app and use those values in the templates during the MD file generation.
For eg, I need to add an anchor tag in my Slate and I want to provide the values during the MD file generation. So I, want to provide these values in the environment JSON file as shown below. Custom can accept any data structure.
{ "custom": { "cusomData": "customValue" } }
And User this value in the templete .dot file
> <a href="{{=data.custom.cusomData}}">Link to Something</a>