basic implementation of building templates for runtime with error checking when using non-reactive statements in a reactive context