mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Remove obsolete code and update docs
This commit is contained in:
parent
f59809e9a4
commit
c25a1eef33
|
@ -3,7 +3,7 @@ title: $:/core/modules/commands/load.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: command
|
module-type: command
|
||||||
|
|
||||||
Command to load tiddlers from a file
|
Command to load tiddlers from a file or directory
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
@ -30,9 +30,7 @@ Command.prototype.execute = function() {
|
||||||
if(this.params.length < 1) {
|
if(this.params.length < 1) {
|
||||||
return "Missing filename";
|
return "Missing filename";
|
||||||
}
|
}
|
||||||
var ext = path.extname(self.params[0]),
|
var tiddlers = $tw.loadTiddlersFromPath(self.params[0]),
|
||||||
stat = fs.statSync(self.params[0]),
|
|
||||||
tiddlers = $tw.loadTiddlersFromPath(self.params[0]),
|
|
||||||
count = 0;
|
count = 0;
|
||||||
$tw.utils.each(tiddlers,function(tiddlerInfo) {
|
$tw.utils.each(tiddlers,function(tiddlerInfo) {
|
||||||
$tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {
|
$tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user