示例#1
0
文件: views.py 项目: Ximpia/ximpia
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)
示例#2
0
文件: views.py 项目: Ximpia/ximpia
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)