Modules
A module bundles multiple snippet parts — PHP, CSS, JavaScript, HTML — into a single installable unit so that related code installs, updates, and manages together.
What a module is
A module is a single installable unit that groups multiple parts across different languages. Instead of tracking several separate snippets that all belong to the same feature, you work with one module that owns all of them. Enabling, disabling, updating, or removing the module acts on all its parts at once.
When to use a module
Use a module whenever a feature needs more than one part or language working together. A typical example: a custom widget that requires a PHP class, a CSS stylesheet, and a JavaScript initialiser. As separate snippets those three pieces are easy to lose track of; as a module they live and move as one.
For self-contained logic that only needs a single type — a PHP filter, a CSS rule — a plain snippet is simpler and the better choice.
Modules and the cloud library
Modules are distributed through the cloud library alongside snippets. When you import a module from the library, all its parts are installed together. Pro items in the library may include modules that combine several snippet types into a complete, ready-to-run feature.