deps: update example dependencies
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 492e933 · Browse files · 6 files·+8 added−10 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+8 added−10 removed
- other:+8 added−10 removed
Provenance
- Commit
9e5a758- Tree
a55420f- Author
Douglas Christopher Wilson <doug@somethingdoug.com>- Committer
Douglas Christopher Wilson <doug@somethingdoug.com>- Parent
492e933
6 files changed+8 added−10 removed
modified:examples/mvc/controllers/pet/views/edit.jade+1 added-2 removed
1 link(rel='stylesheet', href='/style.css')2 h1= pet.name3-form(action='/pet/#{pet.id}', method='post')4- input(type='hidden', name='_method', value='put')3+form(action='/pet/#{pet.id}?_method=put', method='post')4 label= 'Name: '5 input(type='text', name='pet[name]', value=pet.name)6 input(type='submit', value='Update')modified:examples/mvc/controllers/user/views/edit.jade+1 added-2 removed
1 link(rel='stylesheet', href='/style.css')2 h1= user.name3-form(action='/user/#{user.id}', method='post')4- input(type='hidden', name='_method', value='put')3+form(action='/user/#{user.id}?_method=put', method='post')4 label= 'Name: '5 input(type='text', name='user[name]', value='#{user.name}')6 input(type='submit', value='Update')7 4 unmodified linesmodified:examples/mvc/index.js+2 added-2 removed
42 unmodified lines43444546474847484950515248 unmodified lines42 unmodified lines
// parse request bodies (req.body)app.use(bodyParser());
// override methods (put, delete)app.use(methodOverride());// allow overriding methods in query (?_method=put)app.use(methodOverride('_method'));
// expose the "messages" local variable when views are renderedapp.use(function(req, res, next){ var msgs = req.session.messages || [];48 unmodified linesmodified:examples/route-separation/views/users/edit.jade+1 added-2 removed
1 unmodified line2 3 block content4 h1 Editing #{user.name}5 #user6- form(method="post")7- input(type="hidden", value="put", name="_method")6+ form(action="?_method=put", method="post")7 p Name: 8 input(type="text", value= user.name, name="user[name]")9 p Email: 10 input(type="text", value= user.email, name="user[email]")2 unmodified linesmodified:examples/route-separation/index.js+1 added
14 unmodified lines15161718192021222322 unmodified lines14 unmodified lines
app.set('view engine', 'jade');app.set('views', __dirname + '/views');app.use(logger('dev'));app.use(methodOverride('_method'));app.use(cookieParser());app.use(bodyParser());app.use(express.static(__dirname + '/public'));
22 unmodified linesmodified:package.json+2 added-2 removed
76 unmodified lines77 "jade": "~1.3.1",78 "marked": "0.3.2",79 "multiparty": "~3.2.4",80 "hjs": "~0.0.6",81- "body-parser": "1.2.2",81+ "body-parser": "1.3.0",82 "cookie-parser": "1.1.0",83 "express-session": "1.2.1",84- "method-override": "1.0.2",84+ "method-override": "2.0.1",85 "morgan": "1.1.1",86 "vhost": "1.0.0"87 },88 "engines": {9 unmodified lines