service/tests/tpl.js
Star 7bb6938cb7 update id
add tpl
support reload on watched file changes
2024-11-30 10:44:02 +08:00

8 lines
193 B
JavaScript

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' })
}