handle resolution of deeply nested html template includes