Add Smarty for templating engine.