> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# {{asset}} helper

- URL: https://getpublii.com/dev/asset-helper/
- Published: 2022-03-22T16:52:59.488Z
- Updated: 2024-02-09T10:35:17.296Z
- Description: {{asset}} is a helper used to retrieve asset URLs Syntax: {{ asset "PATH\_TO\_ASSET" }} Example: {{ asset "css/main.css" }} It returns URL concatenated by the…
- Author: Tomasz Dziuda
- Tags: Helpers

**{{asset}}** is a helper used to retrieve asset URLs

Syntax:

```handlebars
{{ asset "PATH_TO_ASSET" }}
```

Example:

```handlebars
{{ asset "css/main.css" }}
```

It returns URL concatenated by the following way:

```
DOMAIN + ASSETS_PATH + PATH_TO_ASSET
```

Where **DOMAIN** is a domain specified under server settings. **ASSETS\_PATH** is a value from theme config under **files.assetsPath**, and **PATH\_TO\_ASSET** is a param value.
