title: How to pass values to templates in tornado
body: <p>I have a template which displays a lot of values which are passed from a server, my question is how to i pass these values to the template file.
  My Handler code is as follows:
      class AdminHandler(tornado.web.RequestHandler):
      def get(self, *args, **kwargs):
          #respond to a get method
          #self.write("AdminHandler:: Inside GET function")</p>
  
  <pre><code>    userName = "Alwin Doss"
      welcomeMessage = "Good evening are you enjoying kids dance"
      items = {}
      items["userName"] = userName
      items["welcomeMessage"] = welcomeMessage
  
  
      self.render("web/admin.html", title="Admin Page", items=items)
  </code></pre>
  
  <p>and my template code is as follows:
      {% items['userName'] %}
      {% items['welcomeMessage'] %}
      {% end %}</p>
  
  <p>Problem is that I am unable to access these values in the template file. I get the following error:</p>
  
  <p>raise ParseError("unknown operator: %r" % operator)
  ParseError: unknown operator: "items['userName']"
  ERROR:root:500 GET /admin (127.0.0.1) 3.27ms</p>