$site->code()

Returns a $files collection with all code files (css, js, html) placed directly in /content

  • return ($files)

Example

<?php foreach($site->code()->filterBy('extension', 'css') as $css): ?>
<?= css($css->url()) ?>
<?php endforeach ?>

Is something missing or incorrect? Edit this page on Github…