title: Is there a native templating system for plain text files in Python?
body: <p>I am looking for either technique or templating system for Python for formatting output to simple text. What I require is that it will be able to iterate through multiple lists or dicts. It would be nice if I would be able to define template into separate file (like output.templ) instead of hardcoding it into source code.</p>
  
  <p>As simple example what I want to achieve, we have variables <code>title</code>, <code>subtitle</code> and <code>list</code></p>
  
  <pre><code>title = 'foo'
  subtitle = 'bar'
  list = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
  </code></pre>
  
  <p>And running throught a template, output would look like this:</p>
  
  <pre><code>Foo
  Bar
  
  Monday
  Tuesday
  Wednesday
  Thursday
  Friday
  Saturday
  Sunday
  </code></pre>
  
  <p>How to do this? Thank you.</p>