service/tests/tpl.js

8 lines
193 B
JavaScript
Raw Permalink Normal View History

import s from "apigo.cc/gojs/service"
function main(args) {
s.setTplFunc({
bb: text => { return '<b>' + text + '</b>' }
})
return s.tpl('tpl/page.html', { title: 'Abc' })
}