Django Book 翻译
菜单>:
TOC
返回
原文:
When you create a ``Template`` object, the template system compiles the raw template code into an internal, optimized form, ready for rendering. But if your template code includes any syntax errors, the call to ``Template()`` will cause a ``TemplateSyntaxError`` exception:
翻译:
当你创建一个 ``Template`` 对象,模板系统在内部编译这个模板到内部格式,并做优化,做好渲染的准备。如果你的模板语法有错误,那么在调用 ``Template()`` 时就会拋出``TemplateSyntaxError`` 异常:
备注:
译者: