Add flint_get_template and flint_get_widgets_template functions