1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-29 03:20:27 +00:00

Renamed tiddlywiki.plugin files to tiddlywiki.files

Because we're just about to use the name `tiddlywiki.plugin` for
exploded plugin folders
This commit is contained in:
Jeremy Ruston 2012-08-31 15:04:08 +01:00
parent bb972888b9
commit ed3a10f043
3 changed files with 3 additions and 3 deletions

View File

@ -658,10 +658,10 @@ $tw.loadTiddlersFromFolder = function(filepath,basetitle,excludeRegExp,isShadow)
var stat = fs.statSync(filepath);
if(stat.isDirectory()) {
var files = fs.readdirSync(filepath);
// Look for a tiddlywiki.plugin file
if(files.indexOf("tiddlywiki.plugin") !== -1) {
// Look for a tiddlywiki.files file
if(files.indexOf("tiddlywiki.files") !== -1) {
// If so, process the files it describes
var pluginInfo = JSON.parse(fs.readFileSync(filepath + "/tiddlywiki.plugin").toString("utf8"));
var pluginInfo = JSON.parse(fs.readFileSync(filepath + "/tiddlywiki.files").toString("utf8"));
for(var p=0; p<pluginInfo.tiddlers.length; p++) {
var tidInfo = pluginInfo.tiddlers[p],
typeInfo = $tw.config.contentTypeInfo[tidInfo.fields.type || "text/plain"],