support for calling templates fron dynamic variables