Work in progress on introducing tag language. Not tested yet.

This commit is contained in:
Tomas Bures 2019-07-03 11:58:58 +02:00
parent 450b930cc5
commit 00e328a914
21 changed files with 2154 additions and 1909 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,12 @@
'use strict';
const TagLanguages = {
SIMPLE: 'simple',
HBS: 'hbs'
};
const allTagLanguages = [TagLanguages.SIMPLE, TagLanguages.HBS];
function _getBases(trustedBaseUrl, sandboxBaseUrl, publicBaseUrl) {
if (trustedBaseUrl.endsWith('/')) {
trustedBaseUrl = trustedBaseUrl.substring(0, trustedBaseUrl.length - 1);
@ -58,5 +65,7 @@ function unbase(text, trustedBaseUrl, sandboxBaseUrl, publicBaseUrl, treatAllAsP
module.exports = {
base,
unbase,
getMergeTagsForBases
getMergeTagsForBases,
TagLanguages,
allTagLanguages
};