Add Smarty template support.

I added support for Smarty style templates, using a RendererInterface.