Mercurial > hg > ChinaGisRestApi
diff zpt/JSONHTML_schema_table.zpt @ 44:c6c47034d2a4
more refactoring of templates
gis can be rendered by pagetemplate
author | casties |
---|---|
date | Thu, 02 Sep 2010 16:38:50 +0200 |
parents | 1a4b56716902 |
children | 9ec7e32e8ad3 |
line wrap: on
line diff
--- a/zpt/JSONHTML_schema_table.zpt Thu Sep 02 13:17:23 2010 +0200 +++ b/zpt/JSONHTML_schema_table.zpt Thu Sep 02 16:38:50 2010 +0200 @@ -1,9 +1,10 @@ -<html tal:define="layout python:request.get('layout','pre'); element_id python:request.get('element_id',None)"> +<html tal:define="layout python:request.get('layout','pre'); element_id python:request.get('element_id',None) + schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title tal:content="template/title">The title</title> </head> <body> - <pre tal:attributes="id element_id" tal:content="python:here.getJsonString(options['data'])"></pre> + <pre tal:attributes="id element_id" tal:content="python:here.getJsonString(data)"></pre> </body> </html> \ No newline at end of file