The purpose is that I use IMGIX for handling images and use JSON or query strings to pass extra parameters to the photos in an HTML attribute that is then handled in Javascript.
Any tips on passing values that do not get encoded?
It is not clear what you use to output your “fluid” but have you tried creating your map with .Scratch.SetInMap and then use {{ jsonify (.Scratch.Get "fluid") }}?
The first is beautiful, but when put inside an HTML element it gets bungled. I’ve tried safeURL, safeHTML, and the others but still can’t achieve a non-decoded output.
You’re right :). I didn’t give much thought to that. I assumed that the OP must have genuinely needed it and the snippet here was probably a part of a bigger picture.