##// END OF EJS Templates
templatekw: add helper method to generate a template keyword for a namespace...
Sean Farley -
r23609:40fcf6c0 default
parent child Browse files
Show More
@@ -378,6 +378,14 b' def showtags(**args):'
378 """:tags: List of strings. Any tags associated with the changeset."""
378 """:tags: List of strings. Any tags associated with the changeset."""
379 return showlist('tag', args['ctx'].tags(), **args)
379 return showlist('tag', args['ctx'].tags(), **args)
380
380
381 def shownames(namespace, **args):
382 """helper method to generate a template keyword for a namespace"""
383 ctx = args['ctx']
384 repo = ctx._repo
385 names = repo.names.names(repo, namespace, ctx.node())
386 return showlist(repo.names.templatename(namespace), names,
387 plural=namespace, **args)
388
381 # keywords are callables like:
389 # keywords are callables like:
382 # fn(repo, ctx, templ, cache, revcache, **args)
390 # fn(repo, ctx, templ, cache, revcache, **args)
383 # with:
391 # with:
General Comments 0
You need to be logged in to leave comments. Login now