Skip to content
Myr

Managing dependencies with the kiwi package manager. Closes #228

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

Merge branch 'kiwi'

authored by visionmedia · committed by visionmedia · parents f93af82, 565f68d · Browse files · 15 files+45 added−93 removed
This commit

State

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

Diff stats

15 files+45 added−93 removed

  • other:+45 added−93 removed

15 files+45 added−93 removed

modified:examples/chat/app.js+6 added-3 removed
modified:examples/upload/app.js+4 added
modified:lib/express/plugins/view.js+3 added-7 removed
8 unmodified lines
9 extname = require('path').extname,10 fs = require('fs')1112/**13 * Supported template engines.13 * Cache supported template engine exports.14 */1516var engine = {17 ejs: require('ejs'),18 haml: require('haml'),19 sass: require('sass')20}16var engines = {}1718// --- View1920exports.View = Plugin.extend({
47 unmodified lines
68 layout = options.layout === undefined ? 'layout' : options.layout69 options.context = options.context || this70 self.contentType(ext)71 function render(content) {76 content = engine[type].render(content, options)72 content = (engines[type] = engines[type] || require(type)).render(content, options)73 if (layout)74 self.render(layout + '.' + type + ext, utils.mixin(true, options, {75 layout: false,76 locals: {
21 unmodified lines
modified:lib/express/core.js+1 added-1 removed
300 unmodified lines
301302// --- Express303304Express = { 305 version: '0.5.0',305 version: '0.6.0',306 config: [],307 routes: [],308 plugins: [],309 settings: {},
25 unmodified lines
deleted:lib/support/ejs/lib/ejs.js-53 removed
deleted:lib/support/extnot shown

Its text is not shown, deleted.

deleted:lib/support/hamlnot shown

Its text is not shown, deleted.

deleted:lib/support/js-oonot shown

Its text is not shown, deleted.

deleted:lib/support/sassnot shown

Its text is not shown, deleted.

modified:lib/express.js+3 added-7 removed
deleted:.gitmodules-12 removed
1[submodule "lib/support/haml"]2 path = lib/support/haml3 url = git://github.com/creationix/haml-js.git4[submodule "lib/support/js-oo"]5 path = lib/support/js-oo6 url = git://github.com/visionmedia/js-oo.git7[submodule "lib/support/sass"]8 path = lib/support/sass9 url = git://github.com/visionmedia/sass.js.git10[submodule "lib/support/ext"]11 path = lib/support/ext12 url = git://github.com/visionmedia/ext.js.git
modified:History.md+17 added
120.6.0 / 2010-03-113==================45 * Added seed.yml for kiwi package management support6 * Added HTTP client query string support when method is GET. Closes #2057 8 * Added support for arbitrary view engines.9 For example "foo.engine.html" will now require('engine'),10 the exports from this module are cached after the first require().11 12 * Added async plugin support13 14 * Removed usage of RESTful route funcs as http client15 get() etc, use http.get() and friends16 17 * Removed custom exceptions18190.5.0 / 2010-03-1020==================2122 * Added ext dependency (library of js extensions)
90 unmodified lines
modified:Makefile+1 added-4 removed
1 unmodified line
2NODE = node34all: test56init:7 @git submodule init && git submodule update86test:7 @$(NODE) spec/node.js all8 9app: app-chat
3 unmodified lines
13 14app-upload:15 @$(NODE) examples/upload/app.js16 20.PHONY: init test app17.PHONY: test app
modified:Readme.md+1 added-6 removed
68 unmodified lines
69 run()70 71## Running Tests7273First we need to ensure all submodules are updated:74 75 $ make init7673Express uses the [JSpec](http://jspec.info) BDD JavaScript testing74framework to write and run elegant spec suites. JSpec is frozen 79to spec/lib and does not require separate installation.75to spec/lib and **does not** require separate installation.7677 $ make test78 79Run individual suites:
9 unmodified lines
89## More Information9091 * [JavaScript Extensions & Utilities](http://github.com/visionmedia/ext.js)92 * [JavaScript Sass](http://github.com/visionmedia/sass.js)97 * [Scons Build System](http://www.scons.org/) (some development dependencies rely on this, ex libxmljs)93 * Featured in [Advanced JavaScript e-book](http://www.dev-mag.com/2010/02/18/advanced-javascript/) for only $494 95## Contributors96
29 unmodified lines
added:seed.yml+9 added
1---2 name: Express3 description: Sinatra inspired web development framework4 version: 0.6.05 dependencies:6 - ext >= 0.2.27 - oo >= 1.2.08 - sass >= 0.3.09 - haml >= 0.1.2