2022-10-28 14:17:40 +00:00
|
|
|
name: directive
|
|
|
|
imports:
|
|
|
|
- https://get.silverbullet.md/global.plug.json
|
|
|
|
functions:
|
2022-11-19 14:22:43 +00:00
|
|
|
serverRenderDirective:
|
|
|
|
path: ./command.ts:serverRenderDirective
|
2022-10-28 14:17:40 +00:00
|
|
|
updateDirectivesOnPageCommand:
|
|
|
|
path: ./command.ts:updateDirectivesOnPageCommand
|
|
|
|
command:
|
|
|
|
name: "Directives: Update"
|
|
|
|
key: "Alt-q"
|
|
|
|
events:
|
|
|
|
- editor:pageLoaded
|
|
|
|
indexData:
|
|
|
|
path: ./data.ts:indexData
|
|
|
|
events:
|
|
|
|
- page:index
|
|
|
|
dataQueryProvider:
|
|
|
|
path: ./data.ts:queryProvider
|
|
|
|
events:
|
|
|
|
- query:data
|
|
|
|
queryComplete:
|
|
|
|
path: ./complete.ts:queryComplete
|
|
|
|
events:
|
2022-12-21 13:55:24 +00:00
|
|
|
- editor:complete
|
2022-10-28 14:17:40 +00:00
|
|
|
|
|
|
|
# Templates
|
|
|
|
insertQuery:
|
|
|
|
redirect: core.insertTemplateText
|
|
|
|
slashCommand:
|
|
|
|
name: query
|
|
|
|
description: Insert a query
|
|
|
|
value: |
|
|
|
|
<!-- #query |^| -->
|
|
|
|
|
|
|
|
<!-- /query -->
|
|
|
|
insertInclude:
|
|
|
|
redirect: core.insertTemplateText
|
|
|
|
slashCommand:
|
|
|
|
name: include
|
|
|
|
description: Include another page
|
|
|
|
value: |
|
|
|
|
<!-- #include [[|^|]] -->
|
|
|
|
|
|
|
|
<!-- /include -->
|
|
|
|
insertUseTemplate:
|
|
|
|
redirect: core.insertTemplateText
|
|
|
|
slashCommand:
|
|
|
|
name: use
|
|
|
|
description: Use a template
|
|
|
|
value: |
|
|
|
|
<!-- #use [[|^|]] {} -->
|
|
|
|
|
|
|
|
<!-- /use -->
|
|
|
|
insertUseVerboseTemplate:
|
|
|
|
redirect: core.insertTemplateText
|
|
|
|
slashCommand:
|
|
|
|
name: use-verbose
|
|
|
|
description: Use a template (verbose mode)
|
|
|
|
value: |
|
|
|
|
<!-- #use-verbose [[|^|]] {} -->
|
|
|
|
|
|
|
|
<!-- /use-verbose -->
|
|
|
|
insertEvalTemplate:
|
|
|
|
redirect: core.insertTemplateText
|
|
|
|
slashCommand:
|
|
|
|
name: eval
|
|
|
|
description: Evaluate a JavaScript expression
|
|
|
|
value: |
|
|
|
|
<!-- #eval |^| -->
|
|
|
|
|
|
|
|
<!-- /eval -->
|