Actions71
- Asset Actions
- Attribute Actions
- Block Actions
- Database Actions
- Document Actions
- Markdown Table Actions
- Notebook Actions
- Search Actions
- System Actions
- Tag Actions
System → Render Sprig Template
AI-generatedOverview
This node executes a Sprig template rendering operation within the SiYuan system resource. It takes a Sprig template string as input and processes it to produce a rendered output. This is useful for dynamically generating formatted dates, strings, or other templated content based on the Sprig templating language, which is commonly used in automation workflows to customize outputs dynamically.
Use Case Examples
- Rendering the current date in a specific format using the template '{{now | date "2006-01-02"}}'.
- Generating dynamic text content based on system data or variables using Sprig templates.
Properties
| Name | Meaning |
|---|---|
| Sprig Template | A Sprig template string to render, e.g., '{{now | date "2006-01-02"}}'. This is the main input that defines the template to be processed. |
Output
JSON
renderedOutput- The result of the rendered Sprig template as a string.
Dependencies
- Requires SiYuan API URL and API Token credentials for authentication.
Troubleshooting
- Ensure that the SiYuan API URL and API Token credentials are correctly set; missing credentials will cause the node to throw an error.
- If the Sprig template syntax is incorrect, the rendering may fail or produce unexpected results; validate the template syntax before execution.
- Unsupported resource or operation errors occur if the resource or operation parameters are incorrect or not implemented.
Links
- Sprig Template Language - Official documentation and reference for the Sprig templating language used in this node.
- SiYuan Documentation - Official documentation for SiYuan, the system this node interacts with.