compress all template snippets