[Kimchi-devel] [PATCH 2/2] Update the i18n tmpl to produce JSON

Sheldon shaohef at linux.vnet.ibm.com
Thu May 15 00:47:28 UTC 2014


On 05/15/2014 08:35 AM, Adam King wrote:
> On 05/14/2014 08:25 PM, Adam King wrote:
>> + if page.endswith('.json'):
>> + return template.render(page, None)
> I am sure there is a better way to accomplish this, but I haven't got 
> it yet. Someone with a little more CherryPy expertise?
I will try it.
seem I have tried it before and it can works when meina proposed to use 
json instead of html.


-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center




More information about the Kimchi-devel mailing list