Skip to content
Myr

removed blog example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 8d7e35b · Browse files · 9 files+0 added−107 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+0 added−107 removed

  • other:+0 added−107 removed

9 files+0 added−107 removed

deleted:examples/blog/blog/views/partials/post.ejs-2 removed
1<h3><a href="<%= basepath %>/post/<%= id %>"><%= title %></a></h3>2<p><%= body %></p>
deleted:examples/blog/blog/views/index.ejs-2 removed
1<h2>Posts</h2>2<%- partial('post', { collection: posts, as: global }) %>
deleted:examples/blog/blog/views/layout.ejs-9 removed
1<html>2 <head>3 <title>Blog Example</title>4 </head>5 <body>6 <h1>Best Blog Ever</h1>7 <%- body %>8 </body>9</html>
deleted:examples/blog/blog/views/post.ejs-1 removed
1<%- partial('post', { object: post, as: global }) %>
deleted:examples/blog/blog/index.js-45 removed
deleted:examples/blog/blog/posts.json-4 removed
deleted:examples/blog/app.js-25 removed
deleted:examples/blog/contact.js-9 removed
deleted:examples/blog/main.js-10 removed
12// in ./app.js we did "module.exports", allowing3// us to grab the app from the parent module (the one 4// which required it)5var app = module.parent.exports;67app.get('/', function(req, res){8 res.send('<p>Visit <a href="/blog">/blog</a>'9 + ' or <a href="/contact">/contact</a></p>');10});