mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-10-24 20:27:38 +00:00
Tighten terminology for plugins vs. modules
"Plugins" are bundles of tiddlers managed as one, "modules" are JavaScript tiddlers with a module type identifying when and how they should be executed.
This commit is contained in:
@@ -22,10 +22,10 @@ exports.getFieldString = function(field) {
|
||||
if(value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
// Parse the field with the associated plugin (if any)
|
||||
var fieldPlugin = $tw.Tiddler.fieldPlugins[field];
|
||||
if(fieldPlugin) {
|
||||
return fieldPlugin.stringify.call(this,value);
|
||||
// Parse the field with the associated module (if any)
|
||||
var fieldModule = $tw.Tiddler.fieldModules[field];
|
||||
if(fieldModule) {
|
||||
return fieldModule.stringify.call(this,value);
|
||||
} else {
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user