Add documentation for smarty extension