Django Book 翻译
菜单>:
TOC
返回
原文:
The easiest way to create a ``Template`` object is to instantiate it directly. The ``Template`` class lives in the ``django.template`` module, and the constructor takes one argument, the raw template code. Lets dip into the Python interactive interpreter to see how this works in code.
翻译:
创建一个 ``Template`` 对象最简单的方法就是直接实例化它。 ``Template`` 类就在 ``django.template`` 模块中,构造函数接受一个参数,原始模板代码。让我们深入挖掘一下 Python的解释器看看它是怎么工作的。
备注:
译者: