FIX: export renderTemplate was broken.