This is a first test for using MUH from eleventy.
Muh can evaluate arbitrary JavaScript:
{{ 1 + 1 }} = 2.
It works fine with eleventy data. You can do JavaScript stuff with it. Such as:
{{ title.toUpperCase() }} = HELLO WORLD
It has some basic built-in filters. For example to format a date: {{ new Date() | date }} 30.12.2024
It can fetch JSON. From yesno.wtf, for example:
{"answer":"yes","forced":false,"image":"https://yesno.wtf/assets/yes/0-c44a7789d54cbdcad867fb7845ff03ae.gif"}
You can pass that into an eleventy data function. Remember to add the | safe
filter whenever you want to output html. Otherwise, it's escaped.