X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Fsrc%2FCommand%2FOther%2FHtmlPage.php;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Fsrc%2FCommand%2FOther%2FHtmlPage.php;h=8e6e2e41c57fd00dfe470f8e90b6bc2c3d2de3b1;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/src/Command/Other/HtmlPage.php b/vendor/chi-teck/drupal-code-generator/src/Command/Other/HtmlPage.php new file mode 100644 index 000000000..8e6e2e41c --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/src/Command/Other/HtmlPage.php @@ -0,0 +1,42 @@ +collectVars($input, $output, $questions); + + $this->addFile() + ->path('{file_name}') + ->template('other/html.twig'); + + $this->addFile() + ->path('css/main.css') + ->content('body{background-color: #EEE}'); + + $this->addFile() + ->path('js/main.js') + ->content("console.log('It works!');"); + } + +}