Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Scomp · mod_base
  • Reference
  • Frontend developer
  • Messaging and publish-subscribe
  • Server component
  • JavaScript
  • MQTT

worker

Module

mod_base

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:

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

Edit on GitHub

Related documentation

Scomp

live

Live-updating templates driven by MQTT topics.

Scomp

script

This tag is the placeholder where all generated JavaScript scripts will be output on the page.

Scomp

wire_args

Add extra arguments to wired actions.

Scomp

sortable

Mark an element as sortable.

Scomp

droppable

Mark an element as valid drag destination.

Actions

publish

Publishes a message on the topic tree of the current page.

Modules

mod_wires

Actions, tags (also known as screen components), and javascript for user interfaces using wires .

Scomp

spinner

Add an AJAX activity indicator.

Actions

trigger_event

Trigger a named {% wire %} event in the browser. The required name argument identifies the wire; every other action argument is passed to…

GitHub © 2026 Zotonic