Skip to content
Myr

More 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 d7df142 · Browse files · 5 files+57 added−19 removed
This commit

State

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

Diff stats

5 files+57 added−19 removed

  • other:+57 added−19 removed

5 files+57 added−19 removed

modified:examples/blog/models/post.js+13 added-6 removed
modified:examples/blog/routes/post.js+35 added-10 removed
modified:examples/blog/views/post/form.jade+1 added-1 removed
2 unmodified lines
3 h1 Editing #{post.title}4- else5 h1 New Post67form#post(action='/post', method='post')7form#post(action='/post' + (post.title ? '/' + post.id : ''), method='post')8 - if (post.title)9 input(type='hidden', name='_method', value='put')10 p11 label(for='post[title]') Title:
7 unmodified lines
added:examples/blog/views/post/index.jade+6 added
1.post2 h1= post.title3 p.date.created Created at #{post.createdAt}4 - if (post.updatedAt)5 p.date.updated Updated at #{post.updatedAt}6 pre.body= post.body
modified:examples/blog/app.js+2 added-2 removed