Adds middleware-based template compilation

when no task-runner is used