Skip to content
Myr

added "base" local to blog example for mounting

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 ab93be0 · Browse files · 5 files+15 added−4 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+15 added−4 removed

  • other:+15 added−4 removed

5 files+15 added−4 removed

modified:examples/blog/routes/post.js+1 added
modified:examples/blog/views/post/form.jade+1 added-1 removed
4 unmodified lines
5 h1 New Post67!= messages()89form#post(action='/post' + (post.title ? '/' + post.id : ''), method='post')9form#post(action=base + '/post' + (post.title ? '/' + post.id : ''), method='post')10 - if (post.title)11 input(type='hidden', name='_method', value='put')12 p13 label(for='post[title]') Title:
7 unmodified lines
modified:examples/blog/views/post/index.jade+1 added-1 removed
1.post2 // title3 h24 = post.title5 a.edit(href='/post/' + post.id + '/edit') Edit5 a.edit(href=base + '/post/' + post.id + '/edit') Edit6 7 // flash messages8 != messages()9
7 unmodified lines
modified:examples/blog/views/index.jade+1 added-1 removed
8 unmodified lines
9 p 10 | It looks like you have no posts!11 p12 | Click13 a(href='/post/add') here13 a(href=base + '/post/add') here14 | to create a post. Login15 | as16 em "admin"17 | and
2 unmodified lines
modified:examples/blog/app.js+11 added-1 removed