Skip to content

Commit

Permalink
examples: merge the jade example into ejs
Browse files Browse the repository at this point in the history
closes #3223
  • Loading branch information
notrab authored and dougwilson committed Mar 6, 2017
1 parent eece385 commit 57d3dfd
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 78 deletions.
4 changes: 4 additions & 0 deletions examples/ejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ app.engine('.html', require('ejs').__express);

app.set('views', path.join(__dirname, 'views'));

// Path to our public directory

app.use(express.static(path.join(__dirname + 'public')));

// Without this you would need to
// supply the extension to res.render()
// ex: res.render('users.html').
Expand Down
File renamed without changes.
9 changes: 2 additions & 7 deletions examples/ejs/views/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title> <%= title %> </title>
<style type="text/css">
body {
padding: 50px;
font: 13px Helvetica, Arial, sans-serif;
}
</style>
<title><%= title %></title>
<link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
52 changes: 0 additions & 52 deletions examples/jade/index.js

This file was deleted.

3 changes: 0 additions & 3 deletions examples/jade/views/header.jade

This file was deleted.

5 changes: 0 additions & 5 deletions examples/jade/views/layout.jade

This file was deleted.

8 changes: 0 additions & 8 deletions examples/jade/views/users/index.jade

This file was deleted.

3 changes: 0 additions & 3 deletions examples/jade/views/users/user.jade

This file was deleted.

0 comments on commit 57d3dfd

Please sign in to comment.