1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-07 02:53:00 +00:00

rename macro

This commit is contained in:
Tobias Beer
2015-02-03 15:19:03 +01:00
parent e4bd0c8633
commit 32fd03d2f5

View File

@@ -0,0 +1,29 @@
/*\
title: $:/core/modules/macros/resolvepath.js
type: application/javascript
module-type: macro
Resolves a relative path for an absolute rootpath.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "resolvepath";
exports.params = [
{name: "source"},
{name: "root"}
];
/*
Run the macro
*/
exports.run = function(source, root) {
return $tw.utils.resolvePath(source, root);
};
})();