completes simple support for templating from a file descriptor