python - Mandrill template removing form elements -


i'm using python mandrill package 1.0.57, part of mandrill add-on heroku application. attempt add following template:

<!doctype html> <html>   <head lang="en">     <meta charset="utf-8">     <meta http-equiv="x-ua-compatible" content="ie=edge">     <meta name="viewport" content="width=device-width, initial-scale=1">      <title>test title</title>      <!-- todo styles -->     <style>     </style>   </head>    <body>     {{#each projects}}       <h3>{{this.name}}</h3>       <form>           <label for="log">log</label>           <input type="number" id="log" name="log">           <input type="submit" value="submit">       </form>     {{/each}}   </body> </html> 

the each loop , h3 work fine. however, notice upon adding template, has been modified. specifically, 'code' attribute of template appears missing form , input elements. label missing too, text, 'log', still present

this happens if place elements outside of loop. forms, inputs, , labels special?

edit: directly tried curl , still modified template.

curl -x post -h "content-type: application/json" --data @test.json https://mandrillapp.com/api/1.0/templates/add.json -v 

edit 2: guess working workaround use messages.send()


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -