Django Book 翻译
菜单>:
TOC
返回
原文:
These two functions (``__init__`` and ``render`` ) map directly to the two steps in template processing (compilation and rendering). Thus, the initialization function only needs to store the format string for later use, and the ``render()`` function does the real work.
翻译:
这两个函数( ``__init__`` 和 ``render`` )与模板处理中的两步(编译与渲染)直接对应。这样,初始化函数仅仅需要存储后面要用到的格式字符串,而 ``render()`` 函数才做真正的工作。
备注:
译者: