From 24c325611bdf8793afeb8804d21bb03af1e88e75 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 12 Sep 2017 16:04:35 +0100 Subject: [PATCH] AWS Plugin: More flexible specification of the output type --- plugins/tiddlywiki/aws/docs/help.tid | 8 ++++---- plugins/tiddlywiki/aws/modules/command.js | 16 +++++++--------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/plugins/tiddlywiki/aws/docs/help.tid b/plugins/tiddlywiki/aws/docs/help.tid index 4ee6b5922..c6b294e07 100644 --- a/plugins/tiddlywiki/aws/docs/help.tid +++ b/plugins/tiddlywiki/aws/docs/help.tid @@ -43,14 +43,14 @@ 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 * ''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") +* ''savetypefilter'': optional; a filter that is passed the title of the tiddler being saved and should yield the MIME type for the saved file (defaults to a filter that yields the value of the ''type'' field) ! "s3-rendertiddler" subcommand @@ -74,7 +74,7 @@ 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-rendertiddlers