Skip to content

离线编译完的模块为什么不指明依赖 runtime? #4

@myhere

Description

@myhere

现在预编译完的模块需要这样用:

var xtplMod = require('./items.xtpl');

var render= new XTemplateRuntime(xtplMod);

render.render({})

我觉得预编译完的模块返回 render 函数就好了,编译好的模块里依赖 runtime,这样使用起来就方便多了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions