mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
e4bd0c8633
temporary documentation demo: http://goto.bplaced.net/tw5/5.1.7.html#ResolvePath
23 lines
609 B
Plaintext
23 lines
609 B
Plaintext
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:
|
|
|
|
```
|
|
<<resolvepath "./backup" "http://mysite.com/store.php">>
|
|
```
|
|
|
|
<<resolvepath "./backup" "http://mysite.com/store.php">> |