replace ejs-utils with ejs-render-remote

This commit is contained in:
s2
2019-04-14 18:23:33 +02:00
parent f4f96fa7e9
commit dde32ded55
11 changed files with 126 additions and 19 deletions

View File

@@ -16,15 +16,15 @@
MyApp.renderShell = function() {
document.title = i18next.t('vanillaJS');
$('.js-main-content').html(ejs.rtfe('/templates/main.ejs'));
$('.js-main-content').html(ejs.rr('/templates/main.ejs'));
};
MyApp.renderHomePage = function() {
$('.js-page-container').html(ejs.rtfe('/templates/home.ejs'));
$('.js-page-container').html(ejs.rr('/templates/home.ejs'));
};
MyApp.renderTextPage = function() {
$('.js-page-container').html(ejs.rtfe('/templates/sometext.ejs', {
$('.js-page-container').html(ejs.rr('/templates/sometext.ejs', {
texts: [
{
id: 100,
@@ -39,7 +39,7 @@
};
MyApp.renderAboutPage = function() {
$('.js-page-container').html(ejs.rtfe('/templates/about.ejs'));
$('.js-page-container').html(ejs.rr('/templates/about.ejs'));
};
// events