mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 00:34:55 +00:00
AWS Plugin: More flexible specification of the output type
This commit is contained in:
@@ -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 <filter> <region> <bucket> <filenamefilter> <savetype>
|
||||
--aws s3-savetiddlers <filter> <region> <bucket> <filenamefilter> <savetypefilter>
|
||||
```
|
||||
|
||||
* ''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 <filter> <template> <region> <bucket> <filenamefilter> <type> <savetype>
|
||||
--aws s3-rendertiddlers <filter> <template> <region> <bucket> <filenamefilter> <type> <savetypefilter>
|
||||
```
|
||||
|
||||
* ''filter'': filter identifying tiddlers to render
|
||||
@@ -83,4 +83,4 @@ Save the results of rendering tiddlers identified by a filter to files in an S3
|
||||
* ''bucket'': name of the bucket to save the rendered file
|
||||
* ''filenamefilter'': filter for converting tiddler titles to filepaths (eg `[encodeuricomponent[]addprefix[files/]addsuffix[.html]]`)
|
||||
* ''type'': optional render type (defaults to "text/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 rendered and should yield the MIME type for the saved file (defaults to the value of the ''type'' field via `[is[tiddler]get[type]]`)
|
||||
|
||||
Reference in New Issue
Block a user