mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Introduce identifiers for tiddler subdirectories
This commit is contained in:
parent
bc022f2ebd
commit
9ed82c09fd
@ -53,6 +53,8 @@ $tw.config = $tw.config || {};
|
|||||||
$tw.config.root = $tw.config.root || "$:"; // Root for module titles (eg, "$:/kernel/boot.js")
|
$tw.config.root = $tw.config.root || "$:"; // Root for module titles (eg, "$:/kernel/boot.js")
|
||||||
$tw.config.bootModuleSubDir = $tw.config.bootModuleSubDir || "./modules";
|
$tw.config.bootModuleSubDir = $tw.config.bootModuleSubDir || "./modules";
|
||||||
$tw.config.wikiPluginsSubDir = $tw.config.wikiPluginsSubDir || "./plugins";
|
$tw.config.wikiPluginsSubDir = $tw.config.wikiPluginsSubDir || "./plugins";
|
||||||
|
$tw.config.wikiShadowsSubDir = $tw.config.wikiShadowsSubDir || "./shadows";
|
||||||
|
$tw.config.wikiTiddlersSubDir = $tw.config.wikiTiddlersSubDir || "./tiddlers";
|
||||||
|
|
||||||
// File extensions
|
// File extensions
|
||||||
$tw.config.fileExtensions = {
|
$tw.config.fileExtensions = {
|
||||||
@ -636,9 +638,9 @@ $tw.loadTiddlersFromFolder(path.resolve($tw.boot.wikiPath,$tw.config.wikiPlugins
|
|||||||
|
|
||||||
// HACK: to be replaced when we re-establish sync plugins
|
// HACK: to be replaced when we re-establish sync plugins
|
||||||
// Load shadow tiddlers from wiki shadows directory
|
// Load shadow tiddlers from wiki shadows directory
|
||||||
$tw.loadTiddlersFromFolder(path.resolve($tw.boot.wikiPath,"./shadows"));
|
$tw.loadTiddlersFromFolder(path.resolve($tw.boot.wikiPath,$tw.config.wikiShadowsSubDir));
|
||||||
// Load tiddlers from wiki tiddlers directory
|
// Load tiddlers from wiki tiddlers directory
|
||||||
$tw.loadTiddlersFromFolder(path.resolve($tw.boot.wikiPath,"./tiddlers"),null,null,$tw.wiki);
|
$tw.loadTiddlersFromFolder(path.resolve($tw.boot.wikiPath,$tw.config.wikiTiddlersSubDir),null,null,$tw.wiki);
|
||||||
|
|
||||||
// End of if(!$tw.browser)
|
// End of if(!$tw.browser)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user