Add a snippet for smarty