$page->code()

Returns a $files collection with all code files (css, js, html, etc.) in the page's directory

  • return ($files)

Example

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