Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
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

@lukasbestle

Description

@lukasbestle

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).

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