Add get_template compatibility layer, including errors