Skip to content
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

User defined data fields to be used in templates #537

Open
krishamar91 opened this issue Mar 6, 2023 · 0 comments
Open

User defined data fields to be used in templates #537

krishamar91 opened this issue Mar 6, 2023 · 0 comments

Comments

@krishamar91
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant