Using dynamic HTML templates in Meteor emails

后端 未结 4 1487
星月不相逢
星月不相逢 2020-12-14 09:03

Is there a way to render a Meteor template as the HTML body of an email?

For example if I want to show collection data or generate dynamic links inside that email.

4条回答
  •  孤街浪徒
    2020-12-14 09:35

    accepted answer uses client side code. If you are looking to build email templates client side code can be insecure. there is a package(meteor-ssr) for server side rendering templates you can use that.

提交回复
热议问题