rewriting this to use template-anything syntax