aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/svg
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/.cheat/svg')
-rw-r--r--cheat/.cheat/svg12
1 files changed, 12 insertions, 0 deletions
diff --git a/cheat/.cheat/svg b/cheat/.cheat/svg
index baa48da..5df2da4 100644
--- a/cheat/.cheat/svg
+++ b/cheat/.cheat/svg
@@ -3,3 +3,15 @@
`background-image: url("data:image/svg+xml;charset=utf8,<svg [...]");`
Don't use `#` but `%23`.
+
+# svg inline
+Source de l'idée: https://stackoverflow.com/a/33833561
+
+Pour inclure svg en mode inline mais sans l'avoir en mode sale ds
+le code il faut l'inclure ds le template.
+
+Par exemple sous django possibilité de faire:
+
+```
+{% include 'file.svg' %}
+```