fixed a bug in the compiler

--HG--
branch : trunk
diff --git a/test.py b/test.py
index e6e7dc8..fcdf050 100644
--- a/test.py
+++ b/test.py
@@ -1,10 +1,27 @@
-from jinja import Environment as E1
-from jinja2 import Environment as E2
+from jinja2 import Environment
 
-t1, t2 = [e.from_string("""
-<ul>
-{%- for item in seq %}
-    <li>{{ item|e }}</li>
-{%- endfor %}
-</ul>
-""") for e in E1(), E2()]
+env = Environment()
+tmpl = env.from_string("""<!doctype html>
+<html>
+  <head>
+    <title>{{ page_title|e }}</title>
+  </head>
+  <body>
+    <ul class="navigation">
+    {%- for href, caption in [
+        ('index.html', 'Index'),
+        ('projects.html', 'Projects'),
+        ('about.html', 'About')
+    ] %}
+      <li><a href="{{ href|e }}">{{ caption|e }}</a></li>
+    {%- endfor %}
+    </ul>
+    <div class="body">
+      {{ body }}
+    </div>
+  </body>
+</html>\
+""")
+
+
+print tmpl.render(page_title='<foo>', body='<p>Hello World</p>')