file_db_app/pb_hooks/utils.js
2024-06-24 23:13:08 +02:00

15 lines
No EOL
434 B
JavaScript

module.exports = {
get_error_page: (code,msg,auth=false) => {
const html = $template.loadFiles(
`${__hooks}/views/base/layout.html`,
`${__hooks}/views/base/header.html`,
`${__hooks}/views/base/footer.html`,
`${__hooks}/views/error.html`,
).render({
"code":code,
"msg":msg,
"authorized":auth,
})
return html
}
}