mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
update docs change var name
This commit is contained in:
parent
ddb8daa15a
commit
e87dadd61d
@ -4,7 +4,7 @@ description: Render tiddlers matching a filter to a specified ContentType
|
|||||||
Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).
|
Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).
|
||||||
|
|
||||||
```
|
```
|
||||||
--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>]
|
--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>] ["noclean"]
|
||||||
```
|
```
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
@ -15,4 +15,4 @@ For example:
|
|||||||
|
|
||||||
By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
|
By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
|
||||||
|
|
||||||
Any files in the target directory are deleted. The target directory is recursively created if it is missing.
|
Any files in the target directory are deleted unless the "noclean" parameter is specified. The target directory is recursively created if it is missing.
|
||||||
|
@ -38,9 +38,9 @@ Command.prototype.execute = function() {
|
|||||||
pathname = path.resolve(this.commander.outputPath,this.params[2]),
|
pathname = path.resolve(this.commander.outputPath,this.params[2]),
|
||||||
type = this.params[3] || "text/html",
|
type = this.params[3] || "text/html",
|
||||||
extension = this.params[4] || ".html",
|
extension = this.params[4] || ".html",
|
||||||
deletedirectory = (this.params[5] || "") != "noclean",
|
deleteDirectory = (this.params[5] || "") != "noclean",
|
||||||
tiddlers = wiki.filterTiddlers(filter);
|
tiddlers = wiki.filterTiddlers(filter);
|
||||||
if(deletedirectory){
|
if(deleteDirectory){
|
||||||
$tw.utils.deleteDirectory(pathname);
|
$tw.utils.deleteDirectory(pathname);
|
||||||
}
|
}
|
||||||
$tw.utils.createDirectory(pathname);
|
$tw.utils.createDirectory(pathname);
|
||||||
|
Loading…
Reference in New Issue
Block a user