widdershins icon indicating copy to clipboard operation
widdershins copied to clipboard

User defined data fields to be used in templates

Open krishamar91 opened this issue 1 year ago • 0 comments

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>

krishamar91 avatar Mar 06 '23 21:03 krishamar91