[2] Good bye Smarty!

Smarty as template class is now gone. Also a few changes.