---
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/form/initialize.js',
        'anomaly.theme.example::js/form/example.js',
    ],
    'styles.css' => [
        'anomaly.theme.example::scss/form/example.scss',
    ]
];
```

You can also set assets dynamically.

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