changeset 284:a8cf2ed9d3af

docs: Properly escape examples with Jinja markup.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 01 Mar 2015 22:06:01 -0800
parents e71ed81d497b
children 6e9b5530306e
files docs/docs/02_general/04_how-it-works.md
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docs/docs/02_general/04_how-it-works.md	Sun Mar 01 21:57:57 2015 -0800
+++ b/docs/docs/02_general/04_how-it-works.md	Sun Mar 01 22:06:01 2015 -0800
@@ -78,12 +78,14 @@
 example page is using the `simple` layout, and if we assume the file
 `templates/simple.html` looks like this:
 
+    {%raw%}
     <html>
     <head><title>{{page.title}}</title></head>
     <body>
-    {{content|raw}}
+    {{content|safe}}
     </body>
     </html>
+    {%endraw%}
 
 ...then our final page will be: