TEMPLATE_INPUT_STREAM, a template resolver; first draft.
testing
fixed and running test