improved smarty snip file