diff options
author | larros <larserik.rosengren@gmail.com> | 2017-10-01 18:00:05 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-10-01 18:00:05 +0200 |
commit | 614ed6d16ff5aa71d0522bc819cce59a91f7164c (patch) | |
tree | 153f50a8be1ae3d4d091590dd0b97c6ff9aca44f /testing/templates/macro.html | |
parent | 8882ec000ddbf37465afbdb337222f113bceffcd (diff) | |
download | askama-614ed6d16ff5aa71d0522bc819cce59a91f7164c.tar.gz askama-614ed6d16ff5aa71d0522bc819cce59a91f7164c.tar.bz2 askama-614ed6d16ff5aa71d0522bc819cce59a91f7164c.zip |
Fix whitespace handling for macros and imports (#55)
Resolves https://github.com/djc/askama/issues/52.
* Fix of review comments
Diffstat (limited to 'testing/templates/macro.html')
-rw-r--r-- | testing/templates/macro.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/testing/templates/macro.html b/testing/templates/macro.html index d3ab77a..30ea742 100644 --- a/testing/templates/macro.html +++ b/testing/templates/macro.html @@ -1,5 +1,13 @@ -{% macro thrice(param) -%} - {{ param }} {{ param }} {{ param }} -{%- endmacro %} +1 -{%- call thrice(s) %} +{%- macro thrice(param) -%} + +{{ param }} {{ param }} {{ param }} + +{%- endmacro -%} + +2 + +{%- call thrice(s) -%} + +3 |