예제 #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)