novu icon indicating copy to clipboard operation
novu copied to clipboard

🚀 Feature: Reusable layout (template)

Open Swahjak opened this issue 2 years ago • 0 comments

🔖 Feature description

Add reusable layouts that can be used to make templating less repetitive and easier to maintain (not having to edit all templates when something, like a company phone number, changes.

🎤 Why is this feature needed ?

In many cases, especially for e-mail, you re-use many components in an e-mail. While having access to MJML (https://github.com/novuhq/novu/issues/1792) would help. It still leaves us with repetitive work to recreate headers and footers for each template. Postmark solves this issues by allowing users to define a 'layout' that contains a placeholder {{{ @content }}}, which can then be used when creating a template. The contents of the template will be replace the {{{ @content }}} placeholder.

https://postmarkapp.com/support/article/1077-template-syntax

✌️ How do you aim to achieve this?

Add a section "Layouts" in "Settings" in which one (or more) layouts can be created. Layouts can then be used when creating templates. When a layout is used, the contents of the template are placed in the layout using the {{{ @content }}} placeholder.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Swahjak avatar Dec 15 '22 14:12 Swahjak