From 35a7a66b019f2ea0532ba65cd5475f5cfe46a860 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 12 Sep 2017 16:04:07 +0100 Subject: [PATCH] Add "save" and "render" commands A first pass at fixing #2973 - comments are welcome. If everybody is happy, the next step is to deprecate the existing rendertiddler(s)/savetiddler(s) commands and replace them in all examples and tiddlywiki.info files with the new equivalents. --- core/language/en-GB/Help/render.tid | 34 +++++++++++ core/language/en-GB/Help/rendertiddler.tid | 2 + core/language/en-GB/Help/rendertiddlers.tid | 2 + core/language/en-GB/Help/save.tid | 25 ++++++++ core/language/en-GB/Help/savetiddler.tid | 2 + core/language/en-GB/Help/savetiddlers.tid | 2 + core/modules/commands/render.js | 65 +++++++++++++++++++++ core/modules/commands/save.js | 53 +++++++++++++++++ 8 files changed, 185 insertions(+) create mode 100644 core/language/en-GB/Help/render.tid create mode 100644 core/language/en-GB/Help/save.tid create mode 100644 core/modules/commands/render.js create mode 100644 core/modules/commands/save.js diff --git a/core/language/en-GB/Help/render.tid b/core/language/en-GB/Help/render.tid new file mode 100644 index 000000000..36d959b79 --- /dev/null +++ b/core/language/en-GB/Help/render.tid @@ -0,0 +1,34 @@ +title: $:/language/Help/render +description: Renders individual tiddlers to files + +Render individual tiddlers and save the results to the specified files. + +Optionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the "currentTiddler" variable set to the title of the tiddler that is being rendered. + +A name and value for an additional variable may optionally also be specified. + +``` +--render [] [] [