src/Ace/Util/FileGenerator.php
/**
	 * Renders a template inside the `horizon/resources/ace` directory to the file path.
	 *
	 * @param string $templateName
	 * @param array $context
	 * @param OutputInterface $out Optional interface for automatic success logging
	 * @return void
	 */
Renders a template inside the `horizon/resources/ace` directory to the file path.
@param string $templateName
@param array $context
@param OutputInterface $out Optional interface for automatic success logging
@return void
Renders a template inside the ` horizon / resources / ace ` directory to the file path . @param string $templateName @param array $context @param OutputInterface $out Optional interface for automatic success logging @return void
public function renderFile($templateName, $context = array(), OutputInterface $out = null) {
		if (!ends_with($templateName, '.twig')) {
			$templateName .= '.twig';
		}
		$path = Path::resolve(Framework::path('resources/ace'), $templateName);
		$view = new Template($path, $context);
		$this->writeFile($view->render(), $out);
	}
public function renderFile ( $ templateName , $ context = array ( ) , OutputInterface $ out = null ) { if ( ! ends_with ( $ templateName , '.twig' ) ) { $ templateName .= '.twig' ; } $ path = Path :: resolve ( Framework :: path ( 'resources/ace' ) , $ templateName ) ; $ view = new Template ( $ path , $ context ) ; $ this -> writeFile ( $ view -> render ( ) , $ out ) ; }
Renders a template inside the `horizon/resources/ace` directory to the file path.
Renders a template inside the ` horizon / resources / ace ` directory to the file path .