From 2381fb5312913a45b288212b7d2060f27b68098e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 28 Aug 2017 10:31:27 +0100 Subject: [PATCH] AWS Plugin: improve s3-savetiddlers and s3-rendertiddlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of the simple ‘prefix’ and ‘extension’ parameters, we now accept a filename filter. As well as allowing prefixes and suffixes to be added via filter operators, we can also transform the title --- plugins/tiddlywiki/aws/docs/help.tid | 9 ++++---- plugins/tiddlywiki/aws/modules/command.js | 25 ++++++++++++++--------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/plugins/tiddlywiki/aws/docs/help.tid b/plugins/tiddlywiki/aws/docs/help.tid index fb94b10f3..4ee6b5922 100644 --- a/plugins/tiddlywiki/aws/docs/help.tid +++ b/plugins/tiddlywiki/aws/docs/help.tid @@ -43,13 +43,13 @@ Save a raw tiddler to a file in an S3 bucket. Save raw tiddlers matching a filter to an S3 bucket. ``` ---aws s3-savetiddlers +--aws s3-savetiddlers ``` * ''filter'': filter identifying tiddlers to render * ''region'': AWS region * ''bucket'': name of the bucket to save the files -* ''prefix'': prefix for rendered file names +* ''filenamefilter'': filter for converting tiddler titles to filepaths (eg `[encodeuricomponent[]addprefix[files/]addsuffix[.html]]`) * ''savetype'': optional; the MIME type for the saved file (defaults to ''type'' or "text/html") ! "s3-rendertiddler" subcommand @@ -74,14 +74,13 @@ Save the results of rendering a tiddler to a file in an S3 bucket. Save the results of rendering tiddlers identified by a filter to files in an S3 bucket. ``` ---aws s3-rendertiddler