allow using teal files as render function