Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Jade example with EJS #3223

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/ejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var express = require('../../');

var app = module.exports = express();

// Path to our public directory

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

// Register ejs as .html. If we did
// not call this, we would need to
// name our views foo.ejs instead
Expand Down
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>
51 changes: 0 additions & 51 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.