Add namespace registration for smarty templates