mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
front/general: rename .tpl to .hbs
This commit is contained in:
@ -50,12 +50,12 @@ function getConfig() {
|
||||
function bundleHtml(config) {
|
||||
const minify = require('html-minifier').minify;
|
||||
const baseHtml = fs.readFileSync('./static/html/index.htm', 'utf-8');
|
||||
glob('static/html/**/*.tpl', {}, (er, files) => {
|
||||
glob('static/html/**/*.hbs', {}, (er, files) => {
|
||||
let templatesHtml = '';
|
||||
for (const file of files) {
|
||||
templatesHtml += util.format(
|
||||
'<template id=\'%s-template\'>%s</template>',
|
||||
path.basename(file, '.tpl').replace('_', '-'),
|
||||
path.basename(file, '.hbs').replace('_', '-'),
|
||||
fs.readFileSync(file));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user