replace ejs-utils with ejs-render-remote
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user