aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/svg
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-04-26 11:34:19 +0200
committerneodarz <neodarz@neodarz.net>2019-04-26 11:34:19 +0200
commit469e62e70891a37ec4016fcd025f979859074ef7 (patch)
tree690faf01abd10b7d6721d4e46b5dcbfd0727efb3 /cheat/.cheat/svg
parent537e727f43311bc30d93c9af645dde3450605129 (diff)
downloaddotfiles_ascii-469e62e70891a37ec4016fcd025f979859074ef7.tar.xz
dotfiles_ascii-469e62e70891a37ec4016fcd025f979859074ef7.zip
Add moooore cheat
Diffstat (limited to '')
-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' %}
+```