Skip to content

Define custom items in template grammar #38

@nkakouros

Description

@nkakouros

I would like to define a pattern, e.g.

{{_tomorrow_}}

that would do what

{{_lua:os.execute('date --date="next day" +%Y-%m-%d')_}}

would do. The reason is that I use the tomorrow date in several places in my templates and it is hard to maintain it by replicating the lua snippet everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions