模板本身有两个方法可供使用:render 和 renderSync。 These two methods are identical, but the former is asynchronous and the latter is synchronous. So for the sake of simplicity, we will only discuss render here.
您可以以向 render 方法传入对象作为参数,render 方法会先使用对应的渲染引擎进行解析,并加载 辅助函数。 When rendering is complete, it will try to find whether a layout exists. If layout is false or if it doesn’t exist, the result will be returned directly.