OpenAuth_server/src/views/register.ts

21 lines
561 B
TypeScript
Raw Normal View History

2019-12-16 13:02:51 +00:00
import * as handlebars from "handlebars"
import { readFileSync } from "fs";
import { __ as i__ } from "i18n"
import config from "../config";
let template: handlebars.TemplateDelegate<any>;
function loadStatic() {
let html = readFileSync("./views/out/register/register.html").toString();
template = handlebars.compile(html);
}
export default function GetRegistrationPage(__: typeof i__): string {
if (config.core.dev) {
loadStatic()
}
let data = {}
return template(data, { helpers: { "i18n": __ } })
}
2018-11-06 19:48:50 +00:00
loadStatic()