Skip to content
Myr

more examples

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 03da0d3 · Browse files · 6 files+34 added−7 removed
This commit

State

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

Diff stats

6 files+34 added−7 removed

  • other:+34 added−7 removed

6 files+34 added−7 removed

modified:examples/blog/models/post.js+9 added-1 removed
modified:examples/blog/public/style.css+7 added-2 removed
modified:examples/blog/routes/post.js+1 added-1 removed
modified:examples/blog/routes/site.js+6 added-1 removed
modified:examples/blog/views/post/index.jade+8 added-1 removed
1.post2 h1= post.title2 // title3 h24 = post.title5 a.edit(href='/post/' + post.id + '/edit') Edit6 7 // dates8 p.date.created Created at #{post.createdAt}9 - if (post.updatedAt)10 p.date.updated Updated at #{post.updatedAt}11 12 // body13 pre.body= post.body
modified:examples/blog/views/index.jade+3 added-1 removed
1h1 Blog23- if (count)4 p Display all #{count} posts4 p Display all #{count} post(s)5 #posts!= partial('post', posts)6- else7 p 8 | It looks like you have no posts!9 p10 | Click11 a(href='/post/add') here12 | to create a post. Login13 | as
4 unmodified lines