Framework for smarty templates to work added