[Checkins] SVN: megrok.jinja/trunk/README.txt A tweak on README format

Santiago Videla santiago.videla at gmail.com
Sat May 2 21:49:24 EDT 2009


Log message for revision 99677:
  A tweak on README format
  
  

Changed:
  U   megrok.jinja/trunk/README.txt

-=-
Modified: megrok.jinja/trunk/README.txt
===================================================================
--- megrok.jinja/trunk/README.txt	2009-05-03 01:43:28 UTC (rev 99676)
+++ megrok.jinja/trunk/README.txt	2009-05-03 01:49:24 UTC (rev 99677)
@@ -96,17 +96,16 @@
 and the result it's passed to the PyYAML loader. If PyYAML it's
 able to load the string passed, the result it's returned with simplejson.dumps
 
-If you write this in a template with `.json` extension
+If you write this in a template with `.json` extension::
 
-dicts ::
+    dicts :
+       - key1 : some_text
+       - key2 : {{ 'Some Jinja2 expression' }}
+         {% set l = ['3','4'] %}
+         {% for v in l %}
+       - {{ 'key-' + v }} : whatever {{ v }}
+         {% endfor %}
 
-   - key1 : some_text
-   - key2 : {{ 'Some Jinja2 expression' }}
-     {% set l = ['3','4'] %}
-     {% for v in l %}
-   - {{ 'key-' + v }} : whatever {{ v }}
-     {% endfor %}
-
 You will get the next JSON::
 
      {"dicts": [{"key1": "some_text"},



More information about the Checkins mailing list