Mako

python using View Templates(mako) http://pylonsbook.com/en/1.1/using-view-templates.html?highlight=block

reference

http://www.makotemplates.org/

http://docs.makotemplates.org/en/latest/usage.html#basic-usage

http://docs.makotemplates.org/en/latest/inheritance.html