[PATCH 12 of 20] hgweb, paper: add shortlogajax template and use it

Laurens Holst laurens.nospam at grauw.nl
Tue Aug 13 10:44:00 CDT 2013


Op 13-08-13 10:44, Alexander Plavin schreef:
>> Another thought that occured to me when I read the discussion about
>> writing an XML style: have you considered writing a JSON style instead?
>> That might be even more useful for JavaScript code.
> In this application (I mean infinite scrolling) json style doesn't give any differences/benefits to xml one, as we would have to render the templates in JS anyway. The only difference for future uses in javascript is using xfr.responsexml vs json.parse(xfr.responsetext).

Not really, if you consider iterating over elements, getting values and 
such as well.

> So, this variants are about equivalent and one of them just has to be chosen.
> However, I don't know what will be best here, and would like to hear more opinions on this.

Personally I would go with JSON as well. Much easier to process.

~Laurens



More information about the Mercurial-devel mailing list