python string.Template
<pre><code>&gt;&gt;&gt; print final_template%{'title': '%s', 'image': '%s', 'description': '%s'} % (store_title, store_image[0], global_description)

TypeError: unsupported operand type(s) for %: 'Template' and 'dict'
</code></pre>

<p>How to sub in variables?</p>
