front/general: rename .tpl to .hbs

This commit is contained in:
rr-
2016-04-01 10:24:04 +02:00
parent a32795e8e6
commit e0af5eff27
11 changed files with 11 additions and 11 deletions

View File

@ -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));
}