Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

54.0 KB
Raw Blame
{
	"ID": "20201204184532-3qm9l8n",
	"Spec": "2",
	"Type": "NodeDocument",
	"Properties": {
		"id": "20201204184532-3qm9l8n",
		"title": "Template snippet",
		"type": "doc",
		"updated": "20261024161058"
	},
	"Children": [
		{
			"ID": "20210428223009-x6fyksm",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210428223009-x6fyksm",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeHeadingC8hMarker",
					"Data": "## "
				},
				{
					"Type": "NodeText",
					"Data": "Overview"
				}
			]
		},
		{
			"ID": "20210104091444-bu1zdhb",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-bu1zdhb",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Template snippets insert reusable content at the cursor and support variables and calculations. Templates are stored as "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".md"
				},
				{
					"Type": "NodeText",
					"Data": " files in the workspace’s "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "data/templates/"
				},
				{
					"Type": "NodeText",
					"Data": " folder."
				}
			]
		},
		{
			"ID": "20261024161058-7td9kf1",
			"Type": "NodeHeading",
			"Properties": {
				"id": "20261024161058-7td9kf1",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Create a template"
				}
			],
			"HeadingLevel": 2
		},
		{
			"ID": "20261024161058-cs2bvgk",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261024161058-cs2bvgk",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Write the content you want to reuse in a document, then choose "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Template"
				},
				{
					"Type": "NodeText",
					"Data": " from the document menu and select a name and location. To update it, edit and preview its source in template management, or edit the original document and export it again."
				}
			]
		},
		{
			"ID": "20210104091444-4re70bp",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210104091444-4re70bp",
				"updated": "20250115153127"
			},
			"Children": [
				{
					"Type": "NodeHeadingC8hMarker",
					"Data": "## "
				},
				{
					"Type": "NodeText",
					"Data": "Invoke template"
				}
			]
		},
		{
			"ID": "20210104091444-gfccosk",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-gfccosk",
				"updated": "20250115153127"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "At the cursor caret position, select the template via "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "/"
				},
				{
					"Type": "NodeText",
					"Data": "​ to trigger the template search, find the template that needs to be inserted and press "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Enter"
				},
				{
					"Type": "NodeText",
					"Data": "​."
				}
			]
		},
		{
			"ID": "20260922175505-i0dqml8",
			"Type": "NodeHeading",
			"Properties": {
				"id": "20260922175505-i0dqml8",
				"updated": "20260922175505"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Template management"
				}
			],
			"HeadingLevel": 2
		},
		{
			"ID": "20260922175505-khz1yar",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260922175505-khz1yar",
				"updated": "20260922175505"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Use the More button beside a template or folder to rename, move or delete it. On desktop, right-click the entry to open the same menu. On mobile, the editor also provides a More button for the current template."
				}
			]
		},
		{
			"ID": "20260922175505-jh595vg",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260922175505-jh595vg",
				"updated": "20260922175505"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "On wide desktop windows, the source and preview appear side by side. On narrow windows and mobile devices, the preview appears below the source. The preview context selects the document whose information is used to run the template; previewing does not modify that document."
				}
			]
		},
		{
			"ID": "20260922175505-13670ji",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260922175505-13670ji",
				"updated": "20260922175505"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "For templates that retain the exported document ID, use Open template source document beside the preview button or in the entry menu to return to that document. The source must still be available in the current workspace. Opening it closes template management; after editing and exporting again, reopen template management to load the updated template."
				}
			]
		},
		{
			"ID": "20260922175505-mbdsd8w",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260922175505-mbdsd8w",
				"updated": "20260922175505"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "On mobile, returning from the editor shows the template list; returning again exits template management. Leaving unsaved edits requires confirmation. Cancelling keeps the current content."
				}
			]
		},
		{
			"ID": "20210104091444-jy56z0p",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210104091444-jy56z0p",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeHeadingC8hMarker",
					"Data": "## "
				},
				{
					"Type": "NodeText",
					"Data": "Writing a template"
				}
			]
		},
		{
			"ID": "20210104091444-ycq0a40",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-ycq0a40",
				"updated": "20261016202856"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "The template is implemented using "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "a",
					"TextMarkAHref": "https://golang.org/pkg/text/template/",
					"TextMarkTextContent": "The Go Programming Language text template"
				},
				{
					"Type": "NodeText",
					"Data": ". If you have an understanding of this, you can implement some program logic in it, such as comparison logic, Iterative logic, etc. In addition, to avoid syntax conflicts, template syntax uses "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".action{action}"
				},
				{
					"Type": "NodeText",
					"Data": " (instead of "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "{{action}}"
				},
				{
					"Type": "NodeText",
					"Data": ")."
				}
			]
		},
		{
			"ID": "20210104091444-c7gg3ak",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-c7gg3ak",
				"updated": "20241008202623"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "We have built-in variables and functions to enrich the template through the open source project Sprig (GitHub repo: Masterminds/sprig). For example, you can use "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".action{now | date "2006-01-02 15:04:05"}"
				},
				{
					"Type": "NodeText",
					"Data": "​ to render the current time. For more usage, please refer to "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "a",
					"TextMarkAHref": "http://masterminds.github.io/sprig/",
					"TextMarkTextContent": "Sprig Function Documentation"
				},
				{
					"Type": "NodeText",
					"Data": "."
				}
			]
		},
		{
			"ID": "20210104091444-i618qd8",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-i618qd8",
				"updated": "20261024160716"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "There is a detail about the date and time formatting. "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "tag",
					"TextMarkTextContent": "Note"
				},
				{
					"Type": "NodeText",
					"Data": ": The formatting of the Go programming language is quite special: Instead of using "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "yyyy-MM-dd HH:mm:ss"
				},
				{
					"Type": "NodeText",
					"Data": ", use "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "2006-01-02 15:04:05"
				},
				{
					"Type": "NodeText",
					"Data": " This fixed time format ("
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "a",
					"TextMarkAHref": "https://stackoverflow.com/questions/20530327/origin-of-mon-jan-2-150405-mst-2006-in-golang",
					"TextMarkTextContent": "related discussions on Stack Overflow"
				},
				{
					"Type": "NodeText",
					"Data": ")."
				}
			]
		},
		{
			"ID": "20210104091444-2wbdokx",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-2wbdokx"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "In addition to the built-in variables and functions of Sprig, the following variables and functions are also supported:"
				}
			]
		},
		{
			"ID": "20210104091444-mwbvc9m",
			"Type": "NodeList",
			"ListData": {},
			"Properties": {
				"id": "20210104091444-mwbvc9m",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"ID": "20210104091444-d5hpwdd",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20210104091444-d5hpwdd",
						"updated": "20210104091444"
					},
					"Children": [
						{
							"ID": "20210131162138-93wovlc",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20210131162138-93wovlc",
								"updated": "20210502205126"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "title"
								},
								{
									"Type": "NodeText",
									"Data": "​: Use this variable to insert the current document name. For example, if the template content is "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "# .action{.title}"
								},
								{
									"Type": "NodeText",
									"Data": "​, it will be inserted into the current document content with the first-level heading syntax after invoking"
								}
							]
						}
					]
				},
				{
					"ID": "20210221131637-9xmclwp",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20210221131637-9xmclwp",
						"updated": "20210221131637"
					},
					"Children": [
						{
							"ID": "20210221131637-hnlhxny",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20210221131637-hnlhxny",
								"updated": "20210428223500"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "id"
								},
								{
									"Type": "NodeText",
									"Data": "​:Use this variable to insert the current document id"
								}
							]
						}
					]
				},
				{
					"ID": "20211213121001-86hu9ws",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20211213121001-86hu9ws",
						"updated": "20261024161058"
					},
					"Children": [
						{
							"ID": "20211213121001-qg2k19v",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20211213121001-qg2k19v",
								"updated": "20261024161058"
							},
							"Children": [
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "name"
								},
								{
									"Type": "NodeText",
									"Data": ": Inserts the document block’s name attribute, which is separate from its "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "title"
								}
							]
						}
					]
				},
				{
					"ID": "20211213121022-33ngo64",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20211213121022-33ngo64",
						"updated": "20211213121022"
					},
					"Children": [
						{
							"ID": "20211213121022-un8wzkv",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20211213121022-un8wzkv",
								"updated": "20211213121038"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "alias"
								},
								{
									"Type": "NodeText",
									"Data": "​:Use this variable to insert the current document alias"
								}
							]
						}
					]
				},
				{
					"ID": "20240921122521-l3lmolm",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240921122521-l3lmolm",
						"updated": "20240921122726"
					},
					"Children": [
						{
							"ID": "20240921122521-4qqycah",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240921122521-4qqycah",
								"updated": "20240921122726"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "getHPathByID"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the readable path of the block corresponding to the block ID"
								}
							]
						}
					]
				},
				{
					"ID": "20210121193829-wfzsf6m",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20210121193829-wfzsf6m",
						"updated": "20250801152749"
					},
					"Children": [
						{
							"ID": "20210131162138-7ufhbho",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20210131162138-7ufhbho",
								"updated": "20241213215545"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "queryBlocks"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to query the database, and the return value is a list of blocks"
								}
							]
						},
						{
							"ID": "20241213215602-dk7iion",
							"Type": "NodeCodeBlock",
							"IsFencedCodeBlock": true,
							"Properties": {
								"id": "20241213215602-dk7iion",
								"style": "line-height: 22px;",
								"updated": "20250801152749"
							},
							"Children": [
								{
									"Type": "NodeCodeBlockFenceOpenMarker",
									"Data": "```"
								},
								{
									"Type": "NodeCodeBlockFenceInfoMarker",
									"CodeBlockInfo": "dGVtcGxhdGU="
								},
								{
									"Type": "NodeCodeBlockCode",
									"Data": ".action{ $today := now | date \"20060102150405\" }\n.action{ $blocks := queryBlocks \"SELECT * FROM blocks WHERE content LIKE '?' AND updated > '?' LIMIT ?\" \"%foo%\" $today \"3\" }\n"
								},
								{
									"Type": "NodeCodeBlockFenceCloseMarker",
									"Data": "```"
								}
							]
						}
					]
				},
				{
					"ID": "20250331163529-vixv1we",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20250331163529-vixv1we",
						"updated": "20250801152801"
					},
					"Children": [
						{
							"ID": "20250331163529-m6ezl4h",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20250331163529-m6ezl4h",
								"updated": "20250331163547"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "getBlock"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to query the database based on the block ID, and the return value is block"
								}
							]
						},
						{
							"ID": "20250331163550-2r69a54",
							"Type": "NodeCodeBlock",
							"IsFencedCodeBlock": true,
							"Properties": {
								"id": "20250331163550-2r69a54",
								"updated": "20250801152801"
							},
							"Children": [
								{
									"Type": "NodeCodeBlockFenceOpenMarker",
									"Data": "```"
								},
								{
									"Type": "NodeCodeBlockFenceInfoMarker",
									"CodeBlockInfo": "dGVtcGxhdGU="
								},
								{
									"Type": "NodeCodeBlockCode",
									"Data": ".action{ getBlock \"20250331163529-vixv1we\" }\n"
								},
								{
									"Type": "NodeCodeBlockFenceCloseMarker",
									"Data": "```"
								}
							]
						}
					]
				},
				{
					"ID": "20210504093232-vukp34t",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20210504093232-vukp34t",
						"updated": "20250801152807"
					},
					"Children": [
						{
							"ID": "20210504093232-6wxl589",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20210504093232-6wxl589",
								"updated": "20241213215547"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "querySpans"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to query the database, and the return value is a list of spans"
								}
							]
						},
						{
							"ID": "20241213215606-a1mq6zf",
							"Type": "NodeCodeBlock",
							"IsFencedCodeBlock": true,
							"Properties": {
								"id": "20241213215606-a1mq6zf",
								"style": "line-height: 22px;",
								"updated": "20250801152807"
							},
							"Children": [
								{
									"Type": "NodeCodeBlockFenceOpenMarker",
									"Data": "```"
								},
								{
									"Type": "NodeCodeBlockFenceInfoMarker",
									"CodeBlockInfo": "dGVtcGxhdGU="
								},
								{
									"Type": "NodeCodeBlockCode",
									"Data": ".action{ querySpans \"SELECT * FROM spans LIMIT ?\" \"3\" }\n"
								},
								{
									"Type": "NodeCodeBlockFenceCloseMarker",
									"Data": "```"
								}
							]
						}
					]
				},
				{
					"ID": "20241213214939-he4wmcd",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20241213214939-he4wmcd",
						"updated": "20250801152813"
					},
					"Children": [
						{
							"ID": "20241213214939-hrshqgv",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20241213214939-hrshqgv",
								"updated": "20241213215550"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "querySQL"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to query the database and the return value is a result set"
								}
							]
						},
						{
							"ID": "20241213215554-rox3jk7",
							"Type": "NodeCodeBlock",
							"IsFencedCodeBlock": true,
							"Properties": {
								"id": "20241213215554-rox3jk7",
								"style": "line-height: 22px;",
								"updated": "20250801152813"
							},
							"Children": [
								{
									"Type": "NodeCodeBlockFenceOpenMarker",
									"Data": "```"
								},
								{
									"Type": "NodeCodeBlockFenceInfoMarker",
									"CodeBlockInfo": "dGVtcGxhdGU="
								},
								{
									"Type": "NodeCodeBlockCode",
									"Data": ".action{ querySQL \"SELECT * FROM refs LIMIT 3\" }\n"
								},
								{
									"Type": "NodeCodeBlockFenceCloseMarker",
									"Data": "```"
								}
							]
						}
					]
				},
				{
					"ID": "20241212102027-j293sei",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20241212102027-j293sei",
						"updated": "20250801152821"
					},
					"Children": [
						{
							"ID": "20241212102028-6c8tlnu",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20241212102028-6c8tlnu",
								"updated": "20241212163902"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "statBlock"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to count the block content"
								}
							]
						},
						{
							"ID": "20241213215714-u0j3i4k",
							"Type": "NodeCodeBlock",
							"IsFencedCodeBlock": true,
							"Properties": {
								"id": "20241213215714-u0j3i4k",
								"style": "line-height: 22px;",
								"updated": "20250801152821"
							},
							"Children": [
								{
									"Type": "NodeCodeBlockFenceOpenMarker",
									"Data": "```"
								},
								{
									"Type": "NodeCodeBlockFenceInfoMarker",
									"CodeBlockInfo": "dGVtcGxhdGU="
								},
								{
									"Type": "NodeCodeBlockCode",
									"Data": ".action{ (statBlock .id).RuneCount }\n.action{ (statBlock .id).WordCount }\n"
								},
								{
									"Type": "NodeCodeBlockFenceCloseMarker",
									"Data": "```"
								}
							]
						},
						{
							"ID": "20241212102028-4ew89te",
							"Type": "NodeList",
							"ListData": {},
							"Properties": {
								"id": "20241212102028-4ew89te",
								"updated": "20241212102028"
							},
							"Children": [
								{
									"ID": "20241212102028-wai3afs",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-wai3afs",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-wmtwngj",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-wmtwngj",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "RuneCount"
												}
											]
										}
									]
								},
								{
									"ID": "20241212102028-r9k7ody",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-r9k7ody",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-le5lpgo",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-le5lpgo",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "WordCount"
												}
											]
										}
									]
								},
								{
									"ID": "20241212102028-3egh1dg",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-3egh1dg",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-pijmoea",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-pijmoea",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "LinkCount"
												}
											]
										}
									]
								},
								{
									"ID": "20241212102028-qu6f5tc",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-qu6f5tc",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-8yj65um",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-8yj65um",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "ImageCount"
												}
											]
										}
									]
								},
								{
									"ID": "20241212102028-8ivthzb",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-8ivthzb",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-p8nmm3a",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-p8nmm3a",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "RefCount"
												}
											]
										}
									]
								},
								{
									"ID": "20241212102028-frusted",
									"Type": "NodeListItem",
									"ListData": {
										"BulletChar": 42,
										"Marker": "Kg=="
									},
									"Properties": {
										"id": "20241212102028-frusted",
										"updated": "20241212102028"
									},
									"Children": [
										{
											"ID": "20241212102028-h58utua",
											"Type": "NodeParagraph",
											"Properties": {
												"id": "20241212102028-h58utua",
												"updated": "20241212102028"
											},
											"Children": [
												{
													"Type": "NodeText",
													"Data": "BlockCount"
												}
											]
										}
									]
								}
							]
						}
					]
				},
				{
					"ID": "20241212163841-3yjhffn",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20241212163841-3yjhffn",
						"updated": "20241212163918"
					},
					"Children": [
						{
							"ID": "20241212163841-d8t3qxb",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20241212163841-d8t3qxb",
								"updated": "20241225192802"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "runeCount"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the number of characters in a string"
								}
							]
						}
					]
				},
				{
					"ID": "20241225192802-4sojmmk",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20241225192802-4sojmmk",
						"updated": "20241225192808"
					},
					"Children": [
						{
							"ID": "20241225192802-0rma1gp",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20241225192802-0rma1gp",
								"updated": "20241225192808"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "wordCount"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the number of words in a string"
								}
							]
						}
					]
				},
				{
					"ID": "20211213121042-5n981ru",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20211213121042-5n981ru",
						"updated": "20211213121210"
					},
					"Children": [
						{
							"ID": "20211213121042-g7gd7p5",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20211213121042-g7gd7p5",
								"updated": "20211213121210"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "parseTime"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to parse a string in time format into a "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "time.Time"
								},
								{
									"Type": "NodeText",
									"Data": "​ type so that more formatting methods can be used to render the time"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-h7vi1dh",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-h7vi1dh",
						"updated": "20240308162632"
					},
					"Children": [
						{
							"ID": "20240308162632-en6g3fm",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-en6g3fm",
								"updated": "20240308162632"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "Weekday"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the day of the week "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "Sunday=0, Monday=1, ..., Saturday=6"
								},
								{
									"Type": "NodeText",
									"Data": "​"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-s5ipztw",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-s5ipztw",
						"updated": "20240308162652"
					},
					"Children": [
						{
							"ID": "20240308162632-r20wx9o",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-r20wx9o",
								"updated": "20240308162652"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "WeekdayCN"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the day of the week "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "Sunday=日, Monday=一, ..., Saturday=六"
								},
								{
									"Type": "NodeText",
									"Data": "​"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-9e9ytoj",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-9e9ytoj",
						"updated": "20240308162700"
					},
					"Children": [
						{
							"ID": "20240308162632-dhivcod",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-dhivcod",
								"updated": "20240308162700"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "WeekdayCN2"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function is used to return the day of the week "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "Sunday=天, Monday=一, ..., Saturday=六"
								},
								{
									"Type": "NodeText",
									"Data": "​"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-3ec0qtk",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-3ec0qtk",
						"updated": "20261016111305"
					},
					"Children": [
						{
							"ID": "20240308162632-akk8sxn",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-akk8sxn",
								"updated": "20261016111305"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "ISOWeek"
								},
								{
									"Type": "NodeText",
									"Data": "​: Returns the ISO 8601 week number of the input date (1–53); for example, 2021-01-01 belongs to week 53"
								}
							]
						}
					]
				},
				{
					"ID": "20250828155216-zn0i9zg",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20250828155216-zn0i9zg",
						"updated": "20261016111305"
					},
					"Children": [
						{
							"ID": "20250828155216-p5tgk3f",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20250828155216-p5tgk3f",
								"updated": "20261016111305"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "ISOMonth"
								},
								{
									"Type": "NodeText",
									"Data": "​: Returns the calendar month containing the Thursday of the input date’s ISO week; for example, 2021-01-01 returns 12. For the calendar month, use "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "date \"01\""
								}
							]
						}
					]
				},
				{
					"ID": "20250828155242-k9x8rc7",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20250828155242-k9x8rc7",
						"updated": "20261016111305"
					},
					"Children": [
						{
							"ID": "20250828155242-zwalrdw",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20250828155242-zwalrdw",
								"updated": "20261016111305"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "ISOYear"
								},
								{
									"Type": "NodeText",
									"Data": "​: Returns the ISO week-numbering year of the input date; for example, 2021-01-01 returns 2020. For the calendar year, use "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "date \"2006\""
								}
							]
						}
					]
				},
				{
					"ID": "20250828155247-992wou3",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20250828155247-992wou3",
						"updated": "20250828155251"
					},
					"Children": [
						{
							"ID": "20250828155247-ow57gpr",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20250828155247-ow57gpr",
								"updated": "20250828155251"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "ISOWeekDate"
								},
								{
									"Type": "NodeText",
									"Data": "​: This function returns the date of a specified day of the week using "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "time.Time"
								},
								{
									"Type": "NodeText",
									"Data": "​. For example, "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": ".action{ now | ISOWeekDate 4 | date \"2006-01-02\" }"
								},
								{
									"Type": "NodeText",
									"Data": "​ returns the date of this Thursday"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-essiuhv",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-essiuhv",
						"updated": "20240308162717"
					},
					"Children": [
						{
							"ID": "20240308162632-usz39m7",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-usz39m7",
								"updated": "20240308162717"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "pow"
								},
								{
									"Type": "NodeText",
									"Data": "​: Exponential calculation, return an integer"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-iekhm3w",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-iekhm3w",
						"updated": "20240308162721"
					},
					"Children": [
						{
							"ID": "20240308162632-rxfovte",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-rxfovte",
								"updated": "20240308162721"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "powf"
								},
								{
									"Type": "NodeText",
									"Data": "​: Exponential calculation, return a floating point number"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-v8vhchs",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-v8vhchs",
						"updated": "20240308162730"
					},
					"Children": [
						{
							"ID": "20240308162632-2lzssxv",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-2lzssxv",
								"updated": "20240308162730"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "log"
								},
								{
									"Type": "NodeText",
									"Data": "​: Logarithmic calculation, returns an integer"
								}
							]
						}
					]
				},
				{
					"ID": "20240308162632-4wa3g3n",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20240308162632-4wa3g3n",
						"updated": "20240308162724"
					},
					"Children": [
						{
							"ID": "20240308162632-27ni8cf",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20240308162632-27ni8cf",
								"updated": "20240308162724"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "logf"
								},
								{
									"Type": "NodeText",
									"Data": "​: Logarithmic calculation, return a floating point number"
								}
							]
						}
					]
				},
				{
					"ID": "20260612205353-lyiyntd",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20260612205353-lyiyntd",
						"updated": "20260612205353"
					},
					"Children": [
						{
							"ID": "20260612205353-314p2hv",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20260612205353-314p2hv",
								"updated": "20260612205353"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "markdown2text"
								},
								{
									"Type": "NodeText",
									"Data": "​ converts a Markdown-formatted field value into plain text (discards code, formulas, etc., no line breaks)"
								}
							]
						}
					]
				},
				{
					"ID": "20260612205353-4si1xks",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20260612205353-4si1xks",
						"updated": "20260612205353"
					},
					"Children": [
						{
							"ID": "20260612205353-kxb44qe",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20260612205353-kxb44qe",
								"updated": "20260612205353"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "markdown2content"
								},
								{
									"Type": "NodeText",
									"Data": "​ converts a Markdown-formatted field value into content text (preserves code, formulas, etc., inserts line breaks between blocks)"
								}
							]
						}
					]
				},
				{
					"ID": "20260619110501-lne9tlj",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20260619110501-lne9tlj",
						"updated": "20260619110501"
					},
					"Children": [
						{
							"ID": "20260619110501-arxyui9",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20260619110501-arxyui9",
								"updated": "20260619110501"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "​"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "countif"
								},
								{
									"Type": "NodeText",
									"Data": "​ counts the number of elements in a numeric list that satisfy a specified comparison condition. The first argument is the numeric list, the second is the comparison operator ("
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "gt"
								},
								{
									"Type": "NodeText",
									"Data": "​/"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "lt"
								},
								{
									"Type": "NodeText",
									"Data": "​/"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "eq"
								},
								{
									"Type": "NodeText",
									"Data": "​/"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "ge"
								},
								{
									"Type": "NodeText",
									"Data": "​/"
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "le"
								},
								{
									"Type": "NodeText",
									"Data": "​), and the third is the threshold. For example: "
								},
								{
									"Type": "NodeTextMark",
									"TextMarkType": "code",
									"TextMarkTextContent": "countif .values \"gt\" 0"
								},
								{
									"Type": "NodeText",
									"Data": "​"
								}
							]
						}
					]
				}
			]
		},
		{
			"ID": "20260904022100-kqbyhrl",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20260904022100-kqbyhrl",
				"updated": "20260904091600"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Databases in saved templates"
				}
			]
		},
		{
			"ID": "20260904022100-vq38you",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260904022100-vq38you",
				"updated": "20260904091600"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "When saving a document as a template, “Databases in the template” applies one mode to every database block in that document. “Create complete copy” is the default: each use creates independent databases that no longer synchronize with the sources, and block-level Context filters are removed. “Create mirror copy” preserves the existing database references and Context filters: inserted database blocks share data and view settings with the source databases. Reference mode requires the target document to be able to access the source databases within the same encryption boundary; otherwise template insertion fails. Combining a referenced shared task database with the database block’s Context filter set to the Project relation field (“Contains any item - Current document”) lets one reusable project template show only the tasks related to each project document."
				}
			]
		},
		{
			"ID": "20260830143000-tplen01",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20260830143000-tplen01",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeHeadingC8hMarker",
					"Data": "## "
				},
				{
					"Type": "NodeText",
					"Data": "Create child document trees"
				}
			]
		},
		{
			"ID": "20260830143000-tplen02",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260830143000-tplen02",
				"updated": "20260830143000"
			},
			"Children": [
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "createDocTree"
				},
				{
					"Type": "NodeText",
					"Data": " runs only when a template is inserted manually in the editor. After rendering, SiYuan first shows the complete child document tree that will be created and creates it only after confirmation; canceling inserts no template content and creates no documents. A child is always created even when a sibling has the same title; existing documents are never reused or overwritten. A single undo removes both the inserted template content and every child document created by that insertion. A single plan can create at most 128 documents, and its declared child document tree can be at most 16 levels deep. The resulting absolute file tree depth is still subject to the “Allows creation of sub-documents deeper than 7 levels” setting."
				}
			]
		},
		{
			"ID": "20260830143000-tplen03",
			"Type": "NodeCodeBlock",
			"IsFencedCodeBlock": true,
			"Properties": {
				"id": "20260830143000-tplen03",
				"updated": "20260830143000"
			},
			"Children": [
				{
					"Type": "NodeCodeBlockFenceOpenMarker",
					"Data": "```"
				},
				{
					"Type": "NodeCodeBlockFenceInfoMarker",
					"CodeBlockInfo": "dGVtcGxhdGU="
				},
				{
					"Type": "NodeCodeBlockCode",
					"Data": ".action{define \"child-review\"}\n## Review\n.action{end}\n\n.action{createDocTree (list\n  (dict \"title\" \"Materials\" \"template\" \"children/materials.md\"\n    \"children\" (list (dict \"title\" \"Excerpts\")))\n  (dict \"title\" \"Review\" \"define\" \"child-review\")\n)}\n\n.action{range $doc := renderDocRef \"children\" .id}\n- ((.action{$doc.RootID} \".action{$doc.HPath}\"))\n.action{end}\n"
				},
				{
					"Type": "NodeCodeBlockFenceCloseMarker",
					"Data": "```"
				}
			]
		},
		{
			"ID": "20261024161058-ouz4oh0",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261024161058-ouz4oh0",
				"updated": "20261024161058"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Before running this example, create "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "children/material.md"
				},
				{
					"Type": "NodeText",
					"Data": " in the current template package. It supplies the content for the child document; alternatively, change the path to an existing template."
				}
			]
		},
		{
			"ID": "20260830143000-tplen04",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260830143000-tplen04",
				"updated": "20260830143000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Each child content template is rendered with that child document as its context and can use "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".title"
				},
				{
					"Type": "NodeText",
					"Data": ", "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".id"
				},
				{
					"Type": "NodeText",
					"Data": ", "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".parentID"
				},
				{
					"Type": "NodeText",
					"Data": ", "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".rootID"
				},
				{
					"Type": "NodeText",
					"Data": ", and "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".hPath"
				},
				{
					"Type": "NodeText",
					"Data": "."
				}
			]
		},
		{
			"ID": "20260830143000-tplen07",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260830143000-tplen07",
				"updated": "20261023030419"
			},
			"Children": [
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "renderDocRef \"children\" <id>"
				},
				{
					"Type": "NodeText",
					"Data": " returns the static child-document descriptors in the creation plan; "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "renderDocRef \"id\" <id>"
				},
				{
					"Type": "NodeText",
					"Data": " returns a static block reference to a planned document by its ID, independent of its title or readable path; "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "renderDocRef \"path\" <hPath>"
				},
				{
					"Type": "NodeText",
					"Data": " is the legacy query by readable path."
				}
			]
		},
		{
			"ID": "20260830143000-tplen05",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260830143000-tplen05",
				"updated": "20260830143000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Each node can use "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "define"
				},
				{
					"Type": "NodeText",
					"Data": " to select a named template in the current template file, or "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "template"
				},
				{
					"Type": "NodeText",
					"Data": " to reference an external template relative to the current template package. If any external template is missing or cannot be parsed, the entire operation is canceled; no content is inserted and no partial document tree is created."
				}
			]
		},
		{
			"ID": "20260830143000-tplen06",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260830143000-tplen06",
				"updated": "20260830143000"
			},
			"Children": [
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "createDocTree"
				},
				{
					"Type": "NodeText",
					"Data": " does not run in automatically applied content templates, such as those used when creating documents, daily notes, or database items. Database and asset packaging and exporting an entire document subtree as a template are outside the scope of this release."
				}
			]
		},
		{
			"ID": "20210104091444-xz57sof",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210104091444-xz57sof",
				"updated": "20250801152837"
			},
			"Children": [
				{
					"Type": "NodeHeadingC8hMarker",
					"Data": "## "
				},
				{
					"Type": "NodeText",
					"Data": "An example"
				}
			]
		},
		{
			"ID": "20210104091444-cclnk66",
			"Type": "NodeCodeBlock",
			"IsFencedCodeBlock": true,
			"Properties": {
				"id": "20210104091444-cclnk66",
				"updated": "20250801152837"
			},
			"Children": [
				{
					"Type": "NodeCodeBlockFenceOpenMarker",
					"Data": "```"
				},
				{
					"Type": "NodeCodeBlockFenceInfoMarker",
					"CodeBlockInfo": "dGVtcGxhdGU="
				},
				{
					"Type": "NodeCodeBlockCode",
					"Data": ".action{ $before := (div (now.Sub (toDate \"2006-01-02\" \"2020-02-19\")).Hours 24) }\n.action{ $after := (div ((toDate \"2006-01-02\" \"2048-02-19\").Sub now).Hours 24) }\nToday is `.action{ now | date \"2006-01-02\" }`.\n\n* `.action{ $before }` days have passed since `2020-02-19`\n* There are `.action{ $after }` days left from `2048-02-19`\n"
				},
				{
					"Type": "NodeCodeBlockFenceCloseMarker",
					"Data": "```"
				}
			]
		},
		{
			"ID": "20210104091444-rku6ohp",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210104091444-rku6ohp"
			},
			"Children": [
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "$before"
				},
				{
					"Type": "NodeText",
					"Data": " and "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "$after"
				},
				{
					"Type": "NodeText",
					"Data": " define two variables to record the number of days from the current date to 2020 and 2048, respectively."
				}
			]
		},
		{
			"ID": "20210131162806-sk9tg4q",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210131162806-sk9tg4q",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Push to template marketplace"
				}
			]
		},
		{
			"ID": "20221114173406-3h4imbx",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20221114173406-3h4imbx",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Please refer to "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "a",
					"TextMarkAHref": "https://github.com/siyuan-note/bazaar",
					"TextMarkTextContent": "Community marketplace repo"
				},
				{
					"Type": "NodeText",
					"Data": "."
				}
			]
		},
		{
			"ID": "20210131162142-6g1r08m",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210131162142-6g1r08m"
			}
		}
	]
}