Relative Content

Tag Archive for javascript.netscriban

How to pass an object from Scriban to JavaScript

I am working on a project that uses Scriban templates to render data. I have a complex object in Scriban that I need to pass to JavaScript as a usable object. When I try to pass the object directly, it seems to be incorrectly formatted or encoded. What is the correct way to set an object from Scriban to JavaScript?