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
AndySylvester
AndySylvester

@sod I think I have it worked out!

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

The value of the key “calculator” is “{{ $glossary.calculator }}”.

{{ $glossaryInput := .Get 0 }}

{{ $glossaryInput }}

{{ index $glossary $glossaryInput }}

|
Embed
Progress spinner