Moved backend to a separate directory
This commit is contained in:
6
backend/views/error.pug
Normal file
6
backend/views/error.pug
Normal file
@@ -0,0 +1,6 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
||||
7
backend/views/index.pug
Normal file
7
backend/views/index.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= title
|
||||
p Welcome to #{title}!
|
||||
a(href="/logout") Want so say goodbye?
|
||||
p This name is fetched on server-side: #{email}
|
||||
17
backend/views/layout.pug
Normal file
17
backend/views/layout.pug
Normal file
@@ -0,0 +1,17 @@
|
||||
- const baseUrl = DefaultConfig.EXTERNAL_BASE_URL;
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href=baseUrl+'/styles/style.css')
|
||||
body
|
||||
block content
|
||||
script(type='text/javascript', src=baseUrl+'/js/polyfill.js')
|
||||
script(type='text/javascript', src=baseUrl+'/js/require-2.3.6.min.js')
|
||||
script(type='text/javascript', src=baseUrl+'/js/bundle.js')
|
||||
script.
|
||||
require(['src/index'], function (index) {
|
||||
index.setConfig({EXTERNAL_BASE_URL: '#{baseUrl}'});
|
||||
});
|
||||
if !DefaultConfig.isProduction
|
||||
script(type='text/javascript', src=baseUrl+'/auto-reload/client.js')
|
||||
Reference in New Issue
Block a user