Initial Commit
This commit is contained in:
6
views/error.pug
Normal file
6
views/error.pug
Normal file
@@ -0,0 +1,6 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
||||
7
views/index.pug
Normal file
7
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}
|
||||
14
views/layout.pug
Normal file
14
views/layout.pug
Normal file
@@ -0,0 +1,14 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title= title
|
||||
link(rel='stylesheet', href='/styles/style.css')
|
||||
body
|
||||
block content
|
||||
script(type='text/javascript', src='/js/require-2.3.6.min.js')
|
||||
script(type='text/javascript', src='/js/bundle.js')
|
||||
script.
|
||||
require(['src/index'], function (index) {
|
||||
console.log(index);
|
||||
index.setConfig({EXTERNAL_BASE_URL: '#{externalUrl}'});
|
||||
});
|
||||
Reference in New Issue
Block a user