---
title: Assets
---

# Assets

<div class="documentation__toc"></div>

## Introduction

Specify the `assets` to include per the `collection` they should be added to.

```php
protected $assets = [
    'scripts.js' => [
        'anomaly.theme.example::js/table/initialize.js',
        'anomaly.theme.example::js/table/example.js',
    ],
    'styles.css' => [
        'anomaly.theme.example::scss/table/example.scss',
    ]
];
```

You can also set assets dynamically.

```php
$builder->addAsset($collection, $asset);
```
