[refacto] more renaming + basic render_tpl() added