From 3aec096a0739f4b286c580ae5eafb0cafdb41c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Desmedt?= <34781168+DesignThinkerer@users.noreply.github.com> Date: Tue, 8 Sep 2026 10:38:27 +0200 Subject: [PATCH] Add $:/core/templates/plain-text and $:/core/templates/rendered-text (#10017) * Add $:/core/templates/plain-text core template This template renders a single `text` variable as plain text using the <$text> widget. It enables exporting and downloading dynamic strings via messages like `tm-download-file` using the `variables` paramObject, eliminating the need to create temporary tiddlers in the wiki store purely for rendering purposes. * add release note * add rendered text template * update change note --- core/templates/plain-text.tid | 3 +++ core/templates/rendered-text.tid | 3 +++ .../5.5.0/#10017-plain-text-core-template.tid | 12 ++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 core/templates/plain-text.tid create mode 100644 core/templates/rendered-text.tid create mode 100644 editions/tw5.com/tiddlers/releasenotes/5.5.0/#10017-plain-text-core-template.tid diff --git a/core/templates/plain-text.tid b/core/templates/plain-text.tid new file mode 100644 index 0000000000..339766d173 --- /dev/null +++ b/core/templates/plain-text.tid @@ -0,0 +1,3 @@ +title: $:/core/templates/plain-text + +<$text text=<>/> \ No newline at end of file diff --git a/core/templates/rendered-text.tid b/core/templates/rendered-text.tid new file mode 100644 index 0000000000..91c8fbf5e2 --- /dev/null +++ b/core/templates/rendered-text.tid @@ -0,0 +1,3 @@ +title: $:/core/templates/rendered-text + +<> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/releasenotes/5.5.0/#10017-plain-text-core-template.tid b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#10017-plain-text-core-template.tid new file mode 100644 index 0000000000..e9e809b77b --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.5.0/#10017-plain-text-core-template.tid @@ -0,0 +1,12 @@ +change-category: internal +change-type: feature +created: 20260906234108933 +description: Added new $:/core/templates/plain-text core template for rendering raw variables +github-contributors: DesignThinkerer +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/10017 +modified: 20260906234439533 +release: 5.5.0 +tags: $:/tags/ChangeNote +title: $:/changenotes/5.5.0/#10017 + +Added two new core template, `$:/core/templates/plain-text` and `$:/core/templates/rendered-text` that renders respectively a single `text` variable as plain text or wikitext. This allows to export and download dynamic strings via messages like `tm-download-file`, without creating temporary tiddlers in the wiki store. \ No newline at end of file