# worker

Source: https://zotonic.com/docs/1404/worker

URI: https://zotonic.com/id/1404

Language: en



Start a named Cotonic worker from a template.

The required `src` argument names the worker module. Optional `name`, `base`, and `args` arguments set the worker name, Cotonic base worker, and JSON-encoded startup arguments. The generated script uses the request's CSP nonce.

For example:

```django
{% worker src="js/my-worker.js" name="example" args=worker_args %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1404?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1404?language=en>)
