Sercrod Reference
This section collects the precise rules for Sercrod. The Guide shows how to build small examples step by step. The Reference is where you look up exact directive behavior and configuration.
Start with the directives overview, then move on to configuration and runtime details as needed.
Directives
Directives are attributes that drive Sercrod behavior. They are
always written with a leading asterisk or special prefix, for
example *let, *for, or
@click.
- Directives overview - list of all directives with short descriptions.
- All directives - list of all directive pages (links to detail pages).
-
Data and interpolation
-
*let,*print, interpolation with%name%. -
Conditions and loops
-
*if,*elseif,*else,*for. -
Events and input
-
@event,*input, basic event scope. -
Lifecycle helpers
-
*save,*load,*fetch,*post, and related helpers.
Configuration and runtime
You can adjust how Sercrod behaves by setting configuration values on
window.__Sercrod.config before the script runs.
- Config - global settings such as cleanup, delimiters, and fetch defaults.
- Runtime behavior - how Sercrod scans the DOM, when hosts are created, and how watch modes work.
Using Sercrod with other tools
Sercrod is designed to run alongside other tools. You can add it to existing pages or documentation without rewriting everything.
- SSG and SSR - notes for static site generation and server side rendering.
- Integration notes - using Sercrod in existing sites and with other frameworks.
Where to go next
If you are still learning the basics, the Guide is usually the better place to start:
When you need an exact answer for a directive or configuration option, come back to the Reference.