v0.6.0-7 refactor compile_template to render_template