所有 markojs.com 文档都说要像这样呈现您的 marko 模板:
require('marko/node-require')
require('./template.marko').render()
但是,我找不到任何渲染不使用 require 钩子的 marko 模板的能力。
我希望有这样的事情:
require('marko').compile('./template.marko').render()
// or the shorthand
require('marko').render('./template.marko')
我在这里有什么选择?