Skip to content
Myr

Better blog partials

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 f86f1e8 · Browse files · 4 files+12 added−3 removed
This commit

State

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

Diff stats

4 files+12 added−3 removed

  • other:+12 added−3 removed

4 files+12 added−3 removed

modified:examples/blog/views/partials/post.ejs+1 added-1 removed
1<h3><%= title %></h3>1<h3><a href="/blog/post/<%= id %>"><%= title %></a></h3>2<p><%= body %></p>
added:examples/blog/views/post.ejs+1 added
1<%- partial('post', { object: post, as: global }) %>
modified:examples/blog/blog.js+8 added
modified:examples/blog/posts.json+2 added-2 removed