Add support for templates. Add first template for base_spec.