eikek / eikek/docspell

FR: Template tags syntax suggestion

Open
#2,269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
2.3k
Forks
184
Avg merge
8h 2m
Merged PRs (30d)
4

Description

Template tags like `{{concerning}}` are already great especially with the pipe symbol.

One enhancement could be to make a prefix or suffix dependent on whether the template has a value. For instance:

1. `{{_:correspondent}}` would expand to `_John` if the correspondent was set, else the underscore would not be rendered;
2. `{{correspondent|concerning:_}}` would expand to `John_` if …

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.