v0.6.0-5 Improving compile_template