Short description
Variable |
Description |
Example |
@SUBPAGE@ |
Name of the subpage, without name of the parent page |
"TwoUsefulBuiltinVar", not "FeatureRequests/TwoUsefulBuiltinVar" |
@TS@ |
Timestamp, i.e. is @SIG@ without "--" |
"lenx 2007-1-2 11:14:06", not "-- lenx 2007-1-2 11:14:06" |
a tiny patch for PageEditor.py of MoinMoin 1.5.6 is attached moin-var.patch, which is very simple:
--- PageEditor.py.orig 2007-01-02 10:47:44.000000000 +0800 +++ PageEditor.py 2007-01-02 10:46:26.000000000 +0800 @@ -661,6 +661,8 @@ 'USERNAME': signature, 'USER': "-- %s" % signature, 'SIG': "-- %s [[DateTime(%s)]]" % (signature, now), + 'TS': "%s [[DateTime(%s)]]" % (signature, now), + 'SUBPAGE': self.page_name.split('/')[-1], } if user.valid and user.name: