DOM-based templating for PHP, JavaScript, Python and Ruby