Support inlining templates