diff --git a/core/modules/macros/resolvePath.js b/core/modules/macros/resolve_path.js similarity index 83% rename from core/modules/macros/resolvePath.js rename to core/modules/macros/resolve_path.js index 22bedb7de..d84d87563 100644 --- a/core/modules/macros/resolvePath.js +++ b/core/modules/macros/resolve_path.js @@ -1,5 +1,5 @@ /*\ -title: $:/core/modules/macros/resolvePath.js +title: $:/core/modules/macros/resolvepath.js type: application/javascript module-type: macro @@ -12,7 +12,7 @@ Resolves a relative path for an absolute rootpath. /*global $tw: false */ "use strict"; -exports.name = "resolvePath"; +exports.name = "resolvepath"; exports.params = [ {name: "source"}, diff --git a/editions/tw5.com/tiddlers/macros/ResolvePath.tid b/editions/tw5.com/tiddlers/macros/ResolvePath.tid new file mode 100644 index 000000000..be0a2951f --- /dev/null +++ b/editions/tw5.com/tiddlers/macros/ResolvePath.tid @@ -0,0 +1,23 @@ +created: 20150203152000000 +modified: 20150203152000000 +title: ResolvePath +type: text/vnd.tiddlywiki +caption: resolvepath + +The ''resolvepath'' macro constructs a url for a relative source path with respect to an absolute root path, trailing filenames being cut-off. + +! Parameters + +|!Position |!Name |!Description |!Default | +|1st |source |the relative path to be appended| | +|2nd |root |the absolute path to be appended to | | + +! Examples + +A trivial example to show how the macro works: + +``` +<> +``` + +<> \ No newline at end of file