mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
9a73b0a6aa
Now each macro is in a separate file, and is implemented as a function, rather than being inlined into the compiled tiddler rendering function
23 lines
289 B
JavaScript
23 lines
289 B
JavaScript
/*\
|
|
title: js/macros/version.js
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true */
|
|
"use strict";
|
|
|
|
var utils = require("../Utils.js");
|
|
|
|
exports.macro = {
|
|
name: "version",
|
|
types: ["text/html","text/plain"],
|
|
params: {
|
|
},
|
|
code: function(type,tiddler,store,params) {
|
|
return "5.0.0";
|
|
}
|
|
};
|
|
|
|
})();
|