Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template: Add ability to use macros like %date% to insert todays date #5

Open
mvandenbos opened this issue Nov 7, 2019 · 2 comments
Assignees

Comments

@mvandenbos
Copy link
Owner

It would be great to have the ability to use a %Date% macro in the template text entered by the user to allow for entering today's date.

@mvandenbos mvandenbos self-assigned this Nov 7, 2019
@mvandenbos mvandenbos added this to To do in version 1.0.0 Nov 7, 2019
@koehdaniel
Copy link
Contributor

Should not be todays Date, but the Date specified in the Template-Config templateData.letter.signature.date

@koehdaniel
Copy link
Contributor

Maybe best way for a generic approach is to give the user the ability to add his own variables at the top of the Template Editor.

Then he can for example create a custom variable with the key "myDate" and the value "23.11.2019" and use it inside any text block and also inside templateData.letter.signature.date if he wants by typing %myDate%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
version 1.0.0
  
To do
Development

No branches or pull requests

2 participants