2011-10-13 4 views

답변

2

이 도구를 사용하면 jinga 템플릿을 사용하여 응답을 렌더링 할 수 있습니다. 사용법을 읽어보십시오 ...

@cherrypy.expose 
@cherrypy.tools.jinja(filename='index.html') 
def controller(**kwargs): 
    return { 

    } # This dict is the template context  
관련 문제