瀏覽代碼

docs: improved cookbook example

Mikael Koli 4 年之前
父節點
當前提交
c75dfe3435
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/tutorials/cookbook.rst

+ 4 - 0
docs/tutorials/cookbook.rst

@@ -31,6 +31,7 @@ Then make a HTML file, for example ``path/to/campaigns/summer_sale.html``:
 
 .. code-block:: html
 
+    <img src="{{ company_logo }}" width=200 height=100>
     <h1>Thank you, {{ customer }}, for being awesome!</h1>
     <p>
         We are pleased to inform you that we have a lot of products
@@ -56,6 +57,9 @@ Finally send the emails:
             body_params={
                 "customer": customer,
                 "discounts": discounts
+            },
+            body_images={
+                "company_logo": "path/to/logo.png"
             }
         )