Files
mediacms/frontend/config/templates/renderPageStaticContent.ejs
T

16 lines
400 B
Plaintext
Raw Normal View History

2021-07-11 18:01:34 +03:00
<% if (page) { %>
import { renderPage } from './static/js/utils/renderer';
<% if (page.component) { %>
import { <%= page.component %> } from './static/js/static-pages/<%= page.component %>';
<% if (page.id) { %>
renderPage( '<%= page.id %>', <%= page.component %> );
<% } %>
<% } %>
<% } %>