Is there a prettier parser for AWS SES email templates? #14943
Unanswered
lexicalunit
asked this question in
Q&A
Replies: 1 comment
-
There is no builtin parser for it. You can search/develop a plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the handlebars-esque language that AWS uses for SES email templates:
The default parser for
html
files will typically format code in these files like this:It would be nicer if it understood the
{{}}
parts and didn't do thing like{{/if}} {{#if error_description}}
. Sometimes it will even break them up like this:Which is bad.
I tried using
--parser glimmer
but that's not exactly right either. It doesn't understand some things that AWS SES template do allow, like changing context. For example the glimmer parser doesn't know how to handle the../
part in something like this:So what parser should I use?
Beta Was this translation helpful? Give feedback.
All reactions