Method | Description | |
---|---|---|
__construct ( |
||
askAndRender ( string $templateDomain, string $templateName ) : string | Asks and renders will render the template. | |
bindAndRender ( array $parameters, string $templateDomain, string $templateName ) : string | Like askAndRender but directly binding parameters passed not as options but as direct input argument to method. | |
getCustomTemplate ( $domain ) : null | string | ||
getName ( ) | ||
getNamesForDomain ( string $domain ) : array | Returns the names of registered templates in the given domain. | |
getTemplate ( string $domain, string $name ) : Gush\Template\TemplateInterface | Retrieves a template by domain and name. | |
parameterize ( Gush\Template\TemplateInterface $template ) | Retrieves the requirements of the given template and asks the user for any parameters that are not available from the input, then binds the parameters to the template. | |
registerTemplate ( Gush\Template\TemplateInterface $template ) | Registers a template. | |
setInput ( Symfony\Component\Console\Input\InputInterface $input ) |
public __construct ( |
||
$style | ||
$application |
public getCustomTemplate ( $domain ) : null | string | ||
return | null | string |
public getNamesForDomain ( string $domain ) : array | ||
$domain | string | Return template names for this domain |
return | array | Array of template name strings |
public getTemplate ( string $domain, string $name ) : Gush\Template\TemplateInterface | ||
$domain | string | Domain of the template |
$name | string | Name of the template |
return | Gush\Template\TemplateInterface |
public parameterize ( Gush\Template\TemplateInterface $template ) | ||
$template | Gush\Template\TemplateInterface | Template to render |
public registerTemplate ( Gush\Template\TemplateInterface $template ) | ||
$template | Gush\Template\TemplateInterface |
public setInput ( Symfony\Component\Console\Input\InputInterface $input ) | ||
$input | Symfony\Component\Console\Input\InputInterface |