|
Revision 1672, 388 bytes
(checked in by whmoseley, 4 years ago)
|
Ok, finally a redirect script.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
[%- |
|---|
| 2 |
mylist = []; # to lazy to add a map vmethod |
|---|
| 3 |
FOR item = page.trail; |
|---|
| 4 |
SET escaped = item.name | html; |
|---|
| 5 |
SET tooltip = " title=\"$item.tooltip\"" IF item.tooltip; |
|---|
| 6 |
|
|---|
| 7 |
IF item.here; |
|---|
| 8 |
mylist.push( escaped ); |
|---|
| 9 |
ELSE; |
|---|
| 10 |
mylist.push( "<a href=\"$item.url\" $tooltip>$escaped</a>" ); |
|---|
| 11 |
END; |
|---|
| 12 |
END; |
|---|
| 13 |
mylist.join(' » '); |
|---|
| 14 |
%] |
|---|