Skip to content
Myr

Fixed route-loading 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 037d349 · Browse files · 8 files+59 added−45 removed
This commit

State

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

Diff stats

8 files+59 added−45 removed

  • other:+59 added−45 removed

8 files+59 added−45 removed

modified:examples/route-loading/routes/user.js+1 added-3 removed
modified:examples/route-loading/views/user/add.jade+9 added-5 removed
12extends ../layout34block content1h2 Add a user2form(action='/user', method='post')3 p: input(type='text', name='user[name]', placeholder='Username')4 p: input(type='text', name='user[email]', placeholder='Email')5 p: input(type='submit', value='Add')5 h2 Add a user6 form(action='/user', method='post')7 p: input(type='text', name='user[name]', placeholder='Username')8 p: input(type='text', name='user[email]', placeholder='Email')9 p: input(type='submit', value='Add')
modified:examples/route-loading/views/user/index.jade+10 added-6 removed
12extends ../layout34block content1h1= user.name2table3 tbody4 tr5 td Email6 td= user.email5 h1= user.name6 table7 tbody8 tr9 td Email10 td= user.email
modified:examples/route-loading/views/user/list.jade+10 added-5 removed
1h1 Users2- if (users.length)3 != partial('user', users)4- else5 p No users, head over to <a href='/user/add'>/user/add</a> to create one.12extends ../layout34block content5 h1 Users6 if users.length7 for user in users8 include index9 else10 p No users, head over to <a href='/user/add'>/user/add</a> to create one.
modified:examples/route-loading/views/index.jade+8 added-4 removed
12extends layout34block content1h2 Route sharing example2ul3 li: a(href='/user/add') Add user4 li: a(href='/users') User list5 h2 Route sharing example6 ul7 li: a(href='/user/add') Add user8 li: a(href='/users') User list
modified:examples/route-loading/views/layout.jade+1 added-1 removed
6 unmodified lines
7 padding: 50px;8 font: 14px/1.5 solid helvetica, arial, sans-serif;9 }10 body11 #content!= body11 block content
deleted:examples/route-loading/app.js-21 removed
added:examples/route-loading/index.js+20 added