title: How to use print function with Mako templates
body: <p>heres my problem:</p>
  
  <p>i define a function named "lorem" that should print out some text:</p>
  
  <pre><code>    &lt;div id="mainpage"&gt;
          &lt;%
          def lorem():
              for i in range(0,50):
                  print("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam")
          %&gt;
          ${lorem()}
      &lt;/div&gt;
  </code></pre>
  
  <p>But all it does is printing this text on my console, but i want this printed on my site.
  I´m using cherrypy and Mako with python 3.3.</p>