rewrite templates with slim