| title |
Templating |
| description |
Creation-time templates and render-time body templating with Handlebars |
| id |
diaryx.templating |
| version |
0.1.3 |
| author |
Diaryx Team |
| license |
PolyForm Shield 1.0.0 |
| repository |
https://github.com/diaryx-org/plugin-templating |
| categories |
|
| tags |
templates |
handlebars |
workflow |
|
| capabilities |
workspace_events |
custom_commands |
|
| artifact |
| url |
sha256 |
size |
published_at |
|
|
0 |
|
|
| ui |
| slot |
id |
label |
SettingsTab |
templating-settings |
Templates |
|
| slot |
id |
EditorExtension |
templateVariable |
|
| slot |
id |
EditorExtension |
conditionalBlock |
|
| slot |
id |
label |
BlockPickerItem |
templating-if-else |
If / Else |
|
|
| requested_permissions |
| defaults |
reasons |
| read_files |
edit_files |
create_files |
delete_files |
plugin_storage |
|
|
|
|
|
|
| read_files |
edit_files |
create_files |
delete_files |
plugin_storage |
Read workspace templates from the _templates directory. |
Update existing workspace templates when saving changes. |
Create new workspace templates in the _templates directory. |
Remove workspace templates that are no longer needed. |
Persist templating plugin configuration for the current workspace. |
|
|
Extism WASM guest plugin that provides all templating functionality for Diaryx.
This plugin owns creation-time and render-time templating end-to-end:
- list, get, save, and delete workspace templates
- render body templates from frontmatter values and apply
:vis[...] visibility directives during audience-aware rendering
- fast-path
HasTemplates check for body content
- render creation-time templates with
{{variable}} substitution
- editor extensions via
Builtin manifest type for TemplateVariable and ConditionalBlock
ListTemplates — list workspace and built-in templates
GetTemplate — get template content by name
SaveTemplate — save template to workspace _templates/ folder
DeleteTemplate — delete a workspace template
RenderBody — render body templates with Handlebars for a given body + frontmatter
HasTemplates — fast-path check for {{ in body
RenderCreationTemplate — render a creation-time template with variable substitution
manifest
init
shutdown
handle_command
get_config
set_config
on_event
cargo build -p diaryx_templating_extism --target wasm32-unknown-unknown --release