Tag: 铁笔

angular度js不是呈现在玉(与node.js)

我面临的一个问题是,我的Angularjs没有呈现或加载我的Jade布局。 不知何故手写笔正在完美工作。 我没有找出原因。 我还是玉器,手写笔和尖angular的初学者 以下是我的代码: index.jade !!! 5 html(ng-app='ng-app') head script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js') script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular-resource.min.js') script(src='https://cdn.firebase.com/v0/firebase.js') script(src='http://firebase.github.io/angularFire/angularFire.js') script(type='text/javascript', src='angular.js') link(rel='stylesheet', href='style.css') body .addressBook(ng-controller='addressBook') h1 Address Book table(width='710px', border='0', cellspacing='0', cellpadding='0') tr.title(height='35px', align='left') td(width='130') Name td(width='180') Email td(width='210') Address td(width='80') Mobile tr.details(ng-repeat='contact in contacts') td {{contact.name}} td {{contact.email}} td(style='padding-bottom: 30px;') {{contact.address}} td {{contact.mobile}} angular.js function addressBook($scope) { $scope.contacts = […]

用手写笔导入引导程序

我开始用boilderplate做早午餐。 现在我想在这里包括bootstrap-styl 。 我用npm安装了bootstrap,工作正常。 现在它位于node_modules文件夹中。 当我尝试在* .styl文件中导入@import bootstrap时,问题就出现了。 failed to locate @import file bootstrap.styl 根据文档,这是我需要得到这个工作: var bootstrap = require('bootstrap-styl'), stylus = require('stylus'); function compile(str) { return stylus(str) .use(bootstrap()); } 那么我到底需要写些什么呢? 在我的任何脚本? 我完全不知道这个洞的工作原理。 试图把这个代码放在空脚本文件中,仍然没有结果。

铁笔jeet不工作了

在一天之内,我得到了这个错误。 它不适用于我。 gulpfile.js var gulp = require('gulp'), stylus = require('gulp-stylus'), jeet = require('jeet'); gulp.task('default', function () { gulp.src('assets/*.styl') .pipe(stylus({ use: [ jeet() ] })) .pipe(gulp.dest('assets/')); }); theme.styl @import "jeet" .page span(1/2) failed to locate @import file jeet.styl 完全错误 – http://pastebin.com/KuZ4ZPwK

Expressjs不加载在heroku样式表,给500错误

我正在heroku上运行一个Expressjs安装,而不是加载样式表。 我点击ctrl + u,然后点击样式表链接,并得到这个错误: TypeError: Object #<SendStream> has no method 'on' at Object.static [as handle] (/app/node_modules/express/node_modules/connect/lib/middleware/static.js:75:8) at next (/app/node_modules/express/node_modules/connect/lib/proto.js:190:15) 当我去的url'/stylesheets/style.css'我得到这个错误: Express 500 TypeError: Object #<SendStream> has no method 'on' at Object.static [as handle] (/app/node_modules/express/node_modules/connect/lib/middleware/static.js:75:8) at next (/app/node_modules/express/node_modules/connect/lib/proto.js:190:15) at /app/node_modules/stylus/lib/middleware.js:174:46 at /app/node_modules/stylus/lib/middleware.js:208:20 一切工作正常本地。 这里是package.json { "name": "app-name", "version": "0.0.1", "private": true, "scripts": { "start": "node app" […]