comparison mercurial/templates/json/map @ 28268:3643b66d7f71

hgweb: add index template to json/map This template allows showing the list of all repos in an hgweb instance (in hgwebdir mode) as json. The test has "lastchange" globbed because hgweb uses here file modification time and not the last commit time.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 27 Feb 2016 19:53:18 +0800
parents d4419c01532b
children 94494031f659
comparison
equal deleted inserted replaced
28267:5408e532e50a 28268:3643b66d7f71
170 "topic": {topic|utf8|json}, 170 "topic": {topic|utf8|json},
171 "rawdoc": {doc|utf8|json} 171 "rawdoc": {doc|utf8|json}
172 }' 172 }'
173 filenodelink = '' 173 filenodelink = ''
174 filenolink = '' 174 filenolink = ''
175 index = '\{
176 "entries": [{join(entries%indexentry, ", ")}]
177 }'
178 indexentry = '\{
179 "name": {name|utf8|json},
180 "description": {description|utf8|json},
181 "contact": {contact|utf8|json},
182 "lastchange": {lastchange|json}
183 }'