/** * Gets the tokens for any given template name. * * @param string $pageName The name of the template for which tokens should * be retrieved. * @return array An array of {@link Token} objects representing the * specified template. * @throws \hydrogen\view\exceptions\NoSuchViewException if the specified * template is not found. */ protected function getTokensForPage($pageName) { $page = $this->loader->load($pageName); return Lexer::tokenize($pageName, $page); }