forked from deblan/woodpecker-email
Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e16cc7774f | |||
| 909fc3de7f | |||
| 7360be6207 | |||
| 486e9c13d6 |
4 changed files with 11 additions and 1 deletions
4
CONTRIBUTORS.md
Normal file
4
CONTRIBUTORS.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Contributors
|
||||
|
||||
- [deblan](https://gitnet.fr/deblan)
|
||||
- smainz
|
||||
|
|
@ -7,6 +7,8 @@
|
|||
"require": {
|
||||
"symfony/mailer": "^7.0",
|
||||
"twig/twig": "^3.8",
|
||||
"symfony/google-mailer": "^7.1"
|
||||
"symfony/google-mailer": "^7.1",
|
||||
"twig/extra-bundle": "^3.20",
|
||||
"twig/cssinliner-extra": "^3.20"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ namespace Plugin\Factory;
|
|||
use Twig\Environment;
|
||||
use Twig\Extension\DebugExtension;
|
||||
use Twig\Extension\StringLoaderExtension;
|
||||
use Twig\Extra\CssInliner\CssInlinerExtension;
|
||||
use Twig\Loader\FilesystemLoader;
|
||||
|
||||
class TwigFactory
|
||||
|
|
@ -16,6 +17,7 @@ class TwigFactory
|
|||
$twig = new Environment($loader);
|
||||
$twig->addExtension(new StringLoaderExtension());
|
||||
$twig->addExtension(new DebugExtension());
|
||||
$twig->addExtension(new CssInlinerExtension());
|
||||
|
||||
return $twig;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
{% apply inline_css %}
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
|
@ -207,3 +208,4 @@
|
|||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
{% endapply %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue