Smarty

Lazy start to implementing smarty