##// END OF EJS Templates
templater: make get(dict, key) return a single value...
Yuya Nishihara -
r27892:83aef8d5 default
parent child Browse files
Show More
@@ -432,7 +432,7 b' def get(context, mapping, args):'
432 raise error.ParseError(_("get() expects a dict as first argument"))
432 raise error.ParseError(_("get() expects a dict as first argument"))
433
433
434 key = args[1][0](context, mapping, args[1][1])
434 key = args[1][0](context, mapping, args[1][1])
435 yield dictarg.get(key)
435 return dictarg.get(key)
436
436
437 def if_(context, mapping, args):
437 def if_(context, mapping, args):
438 """:if(expr, then[, else]): Conditionally execute based on the result of
438 """:if(expr, then[, else]): Conditionally execute based on the result of
General Comments 0
You need to be logged in to leave comments. Login now