chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994ed7b
)
formatting
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2020 17:24:37 +0000
(18:24 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2020 17:24:37 +0000
(18:24 +0100)
templates/test.tera
patch
|
blob
|
history
diff --git
a/templates/test.tera
b/templates/test.tera
index a701769940b80de149e8cdc9a62ff4c247539fc3..d0cd8ea39aebd3b211df8f6c6eb4d684dffd5ce1 100644
(file)
--- a/
templates/test.tera
+++ b/
templates/test.tera
@@
-14,12
+14,16
@@
onmousedown="drag_mousedown(event)"
>
<rect fill="green" x="20" y="20" width="200" height="100"/>
-{% for piece in uses %}{{piece}}{% endfor %}
-{% for piece in defs %}
+{%- for piece in uses %}
+ {{piece}}
+{%- endfor %}
+{%- for piece in defs %}
<defs id="defs{{ piece.0 }}">
-{% for item in piece.1 %}{{item}}{% endfor %}
+{%- for item in piece.1 %}
+ {{item}}
+{%- endfor %}
</defs>
-{% endfor %}
+{%
-
endfor %}
</svg>
</body>