##// END OF EJS Templates
templatekw: add {path} keyword to host documentation...
Yuya Nishihara -
r39407:3cd977d5 default
parent child Browse files
Show More
@@ -543,6 +543,12 def showobsolete(context, mapping):
543 543 return 'obsolete'
544 544 return ''
545 545
546 @templatekeyword('path', requires={'fctx'})
547 def showpath(context, mapping):
548 """String. Repository-absolute path of the current file. (EXPERIMENTAL)"""
549 fctx = context.resource(mapping, 'fctx')
550 return fctx.path()
551
546 552 @templatekeyword('peerurls', requires={'repo'})
547 553 def showpeerurls(context, mapping):
548 554 """A dictionary of repository locations defined in the [paths] section
General Comments 0
You need to be logged in to leave comments. Login now