Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Sending emails with twig #207

Closed
r3wt opened this issue Jun 10, 2016 · 1 comment
Closed

Sending emails with twig #207

r3wt opened this issue Jun 10, 2016 · 1 comment

Comments

@r3wt
Copy link
Contributor

r3wt commented Jun 10, 2016

After examing _keystone.js more closely, it appears i missed a step in my twig commits. I'm not sure how the email class works in keystone, but based on the implementation of handlebars, is the following code enough to allow keystone to send emails with twig?

<% if (viewEngine === 'twig') { %>
<% if (includeGuideComments) { %>
// Switch Keystone Email defaults to Twig.js
<% } %>
keystone.Email.defaults.templateExt = 'twig';
keystone.Email.defaults.templateEngine = Twig.render;
<% } %>

Relevant Keystone Issue: keystonejs/keystone#3020

Its unclear to me if this will be enough. i'm having trouble reading the code in the email class and making sense of it.

@Noviny
Copy link
Contributor

Noviny commented Feb 17, 2017

Closing this in favour of #234 as we need to overhaul the email in general

@Noviny Noviny closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants