AndySylvester
AndySylvester

@help @manton @sod I have created a new plugin which uses a JSON file that the plugin user needs to edit. How do I indicate that this file exists and provide a way to edit? Is it the includes element in plugin.json?

|
Embed
Progress spinner
In reply to
sod
sod

@AndySylvester To convert the JSON string into a map, you can use the unmarshal function:

{{ $glossary := $.Site.Params.glossaryData | unmarshal }}

The value of the key "calculator" is "{{ $glossary.calculator }}".
|
Embed
Progress spinner