Django template system fits your needs.
Besides, it has integration with all kinds of things in django. Such as generic views etc. Also you have a lot of snipets in here http://www.djangosnippets.org
For your microframework I would suggest Mako or Jinja(uses the same syntax of Django template system).