def jxAppTemplate(request, app): """ Get ximpia application template **Attributes** * ``app``:String : Application ** Returns ** * ``template``:HttpResponse """ service = TemplateService(None) tmpl = service.get_app(app) return HttpResponse(tmpl)
def jxTemplate(request, app, mode, tmplName): """ Get ximpia template **Attributes** * ``app``:String : Application * ``mode``:String : Mode: window, popup * ``tmplName``:String : Template name ** Returns ** * ``template``:HttpResponse """ service = TemplateService(None) tmpl = service.get(app, mode, tmplName) return HttpResponse(tmpl)