macro pseudo code

open CurrentVersion/$1
/^## CurrentVersion:(.*)$/
latest = \1
/^## Url:(.*)$/
url = \1
new = true if date of CurrentVersion/$1 > today - 14
out = "<a href=\"$url\">$latest</a>"
if new out =. '<img src="new.png" alt="new" />'
return out

# das von oben soll python code werden ;)

RonnyBuchmann/CurrentVersion.py (zuletzt geändert am 2007-12-23 22:46:55 durch localhost)