Templates as code
Some of the store templates FluidGrids provides carry their workflow as code alongside the canvas definition. These are the code templates: you can open one as a project, or install it like any other template.
What a code template contains
A graph template (tier 1) holds the workflow definition plus its graph-builder TypeScript. It installs from the definition.
A durable template (tier 2) holds the workflow definition plus durable-function source.
Opening a template as code
On a template's preview, and in its configuration dialog, select Open as code. FluidGrids downloads a project with the template's source files, ready for fluidgrids push.
Installing a code template
Installing a code template works like installing any other template, including its required inputs. Required inputs fill in values in the definition only, never in the source code. Installing a template creates a new workflow and counts toward your plan's workflow limit.
A durable template installs from its source: FluidGrids builds the code into your workspace when you install it. Durable-function source may import only its own project files and @fluidgrids/workflows, and a durable template does not declare required inputs.
Where code templates come from
The official code templates are store templates FluidGrids provides with their source attached.