Skip to content

Commit

Permalink
removed less support since compiler() has gone away
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 10, 2011
1 parent ae2bcb2 commit c047b64
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions bin/express
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var usage = ''
+ ' Options:\n'
+ ' -s, --sessions add session support\n'
+ ' -t, --template <engine> add template <engine> support (jade|ejs). default=jade\n'
+ ' -c, --css <engine> add stylesheet <engine> support (less|stylus). default=plain css\n'
+ ' -c, --css <engine> add stylesheet <engine> support (stylus). default=plain css\n'
+ ' -v, --version output framework version\n'
+ ' -h, --help output help information\n'
;
Expand Down Expand Up @@ -126,21 +126,6 @@ var css = [
, '}'
].join('\r\n');

/**
* Default less template.
*/

var less = [
'body {'
, ' padding: 50px;'
, ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;'
, '}'
, ''
, 'a {'
, ' color: #00B7FF;'
, '}'
].join('\r\n');

/**
* Default stylus template.
*/
Expand Down Expand Up @@ -277,9 +262,6 @@ function createApplicationAt(path) {
case 'stylus':
write(path + '/public/stylesheets/style.styl', stylus);
break;
case 'less':
write(path + '/public/stylesheets/style.less', less);
break;
default:
write(path + '/public/stylesheets/style.css', css);
}
Expand All @@ -304,9 +286,6 @@ function createApplicationAt(path) {

// CSS Engine support
switch (cssEngine) {
case 'less':
app = app.replace('{css}', '\r\n app.use(express.compiler({ src: __dirname + \'/public\', enable: [\'' + cssEngine + '\'] }));');
break;
case 'stylus':
app = app.replace('{css}', '\r\n app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');
break;
Expand Down

0 comments on commit c047b64

Please sign in to comment.