Hey there,
I’m trying to display certain specific dates with my templates that are not available via dynamic variables.
I thought that there might be a hacky way to use queries and the result-transform
function to get around the need of writing a plugin.
Currently my code looks something like this:
{:query [:find ?today :in $ ?today]
:inputs [:today]
:result-transform (fn [result]
(.getFullYear (new js/Date (first result))))
}
but I get the error
sci eval failed: Could not resolve symbol: js/Date
Why is this symbol not available?