Skip to content

Instantly share code, notes, and snippets.

@MattKetmo
Created June 1, 2012 14:56
Show Gist options
  • Save MattKetmo/2852709 to your computer and use it in GitHub Desktop.
Save MattKetmo/2852709 to your computer and use it in GitHub Desktop.
TwigMailGenerator + embed tag
{% block subject 'Hello World' %}
{% block body_html %}
{% embed "layout_mail.html.twig" %}
{% block content %}
I'm the <b>content</b>.
{% endblock %}
{% endembed %}
{% endblock %}
{% block body_txt %}
{% embed "layout_mail.txt.twig" %}
{% block content %}
I'm the **content**.
{% endblock %}
{% endembed %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment