Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include CSS and JS in index.html and render it for the root page.

  • Loading branch information...
commit 345488e688a0f4ba1e98a4ce949f59e9ce8fa386 1 parent 6aa9b37
@brikis98 authored
Showing with 9 additions and 4 deletions.
  1. +1 −1  server.coffee
  2. +1 −1  server.js
  3. +7 −2 templates/index.html
View
2  server.coffee
@@ -22,6 +22,6 @@ app.configure 'production', ->
watch.watch templates, _, 'templates', 'compiled', '.html', false
app.get '/', (req, res) ->
- res.send 'hi'
+ res.send templates['index'] {}
app.listen 8003
View
2  server.js
@@ -28,7 +28,7 @@
return watch.watch(templates, _, 'templates', 'compiled', '.html', false);
});
app.get('/', function(req, res) {
- return res.send('hi');
+ return res.send(templates['index']({}));
});
app.listen(8003);
}).call(this);
View
9 templates/index.html
@@ -1,8 +1,13 @@
-<html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
-
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Office Map</title>
+ <link href='css/application.css' rel='stylesheet' type='text/css'/>
</head>
<body>
Hello World
</body>
+ <script type="text/javascript" src="js/assets.js"></script>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.