All formatting (also dates) have to be done in code.
I.e having to write stuff like this, and then have to remember to use the formatting of the datetime throughout:
<p>Last done {{timeAgo}} ago</p>
new ChoreInfo(timeAgo: TimeAgo(chore.history.LastOrDefault()))
Which is a bit annoying.
Would have to be solved by registering some functions in the csproj probably. But then one could potentially do sometihng like this
<p>Last done {{deltatime(lastDone)}} ago</p>
Would however potentially be a pain with nested functions etc, and might be a bit out of scope of the engine
All formatting (also dates) have to be done in code.
I.e having to write stuff like this, and then have to remember to use the formatting of the datetime throughout:
Which is a bit annoying.
Would have to be solved by registering some functions in the csproj probably. But then one could potentially do sometihng like this
Would however potentially be a pain with nested functions etc, and might be a bit out of scope of the engine