Skip to content

Register functions #19

Description

@C0DK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions