I have some code that I need to use in a shortcode.
The only issue is that
var x cannot be used in every instance of the shortcode and I need this variable to be dynamically named. I have tried using an md5 hash of the
.Inner content and assigning it to a variable such as
$id, however, this creates more problems than it solves as something like
var $id = assigns the md5 hash as a string.
Has anyone got a solution for creating js vars using layout/shortcode/templating in Hugo?