We can use the Nunjucks "dump" filter to call "JSON.stringify" on an object and "dump" the result(s) into our template.
For example, we can render information about our current page with the Eleventy supplied "page" variable.
eleventy
FoldFold allExpandExpand allAre you sure you want to delete this link?Are you sure you want to delete this tag?
The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community