Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Support for email templates in Kirby query language #589

Open
lukasbestle opened this issue Aug 3, 2020 · 0 comments
Open

Support for email templates in Kirby query language #589

lukasbestle opened this issue Aug 3, 2020 · 0 comments

Comments

@lukasbestle
Copy link
Member

Because PHP templates have the problem of swallowing newlines (see getkirby/kirby#2750), email templates in the Kirby query language (Str::template()) would be more robust.

PHP templates should still be the default to ensure backwards-compatibility, but there should be a way to optionally use the query language. Possible options:

  • Introduce a new file extension for our Str::template() syntax so that templates in the query language would be autodetected.
  • Make this a prop for $kirby->email() that allows to define the template type explicitly (in this case the templates would still use the .php file extension).
afbora added a commit to getkirby/kirby that referenced this issue Aug 10, 2020
afbora added a commit to getkirby/kirby that referenced this issue Sep 4, 2020
afbora added a commit to getkirby/kirby that referenced this issue Oct 18, 2020
afbora added a commit to getkirby/kirby that referenced this issue Oct 18, 2020
afbora added a commit to getkirby/kirby that referenced this issue Oct 18, 2020
afbora added a commit to getkirby/kirby that referenced this issue Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant