/**
  * TemplateRenderer constructor.
  *
  * @param Configuration $configuration
  */
 public function __construct(Configuration $configuration)
 {
     $this->templateDirectory = rtrim($configuration->getViewDirectory(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '%name%';
 }