Files
cloudron-box/src/branding.js
T

19 lines
366 B
JavaScript
Raw Normal View History

2020-10-18 10:15:36 -07:00
'use strict';
exports = module.exports = {
renderFooter
};
const assert = require('assert'),
constants = require('./constants.js');
function renderFooter(footer) {
assert.strictEqual(typeof footer, 'string');
const year = new Date().getFullYear();
return footer.replace(/%YEAR%/g, year)
.replace(/%VERSION%/g, constants.VERSION);
}