Neos.SiteKickstarter/Classes/Service/GeneratorService.php
protected function generateDefaultTemplate($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Template/SiteTemplate.html';

        $contextVariables = [
            'siteName' => $siteName,
            'neosViewHelper' => '{namespace neos=Neos\Neos\ViewHelpers}',
            'fusionViewHelper' => '{namespace fusion=Neos\Fusion\ViewHelpers}',
            'siteNodeName' => $this->generateSiteNodeName($packageKey)
        ];

        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);

        $defaultTemplatePathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Templates/Page/Default.html';
        $this->generateFile($defaultTemplatePathAndFilename, $fileContent);
    }
protected function generateDefaultTemplate($packageKey, $siteName)
    {
        $templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Template/SiteTemplate.html';

        $contextVariables = [
            'siteName' => $siteName,
            'neosViewHelper' => '{namespace neos=Neos\Neos\ViewHelpers}',
            'fusionViewHelper' => '{namespace fusion=Neos\Fusion\ViewHelpers}',
            'siteNodeName' => $this->generateSiteNodeName($packageKey)
        ];

        $fileContent = $this->renderTemplate($templatePathAndFilename, $contextVariables);

        $defaultTemplatePathAndFilename = $this->packageManager->getPackage($packageKey)->getResourcesPath() . 'Private/Templates/Page/Default.html';
        $this->generateFile($defaultTemplatePathAndFilename, $fileContent);
    }
protected function generateDefaultTemplate ( $ packageKey , $ siteName ) { $ templatePathAndFilename = 'resource://Neos.SiteKickstarter/Private/Generator/Template/SiteTemplate.html' ; $ contextVariables = [ 'siteName' => $ siteName , 'neosViewHelper' => '{namespace neos=Neos\Neos\ViewHelpers}' , 'fusionViewHelper' => '{namespace fusion=Neos\Fusion\ViewHelpers}' , 'siteNodeName' => $ this -> generateSiteNodeName ( $ packageKey ) ] ; $ fileContent = $ this -> renderTemplate ( $ templatePathAndFilename , $ contextVariables ) ; $ defaultTemplatePathAndFilename = $ this -> packageManager -> getPackage ( $ packageKey ) -> getResourcesPath ( ) . 'Private/Templates/Page/Default.html' ; $ this -> generateFile ( $ defaultTemplatePathAndFilename , $ fileContent ) ; }
Generate basic template file.

@param string $packageKey
@param string $siteName
@return void
Generate basic template file .