doctype html
link(rel='stylesheet', href='bower_components/bootstrap/dist/css/bootstrap.min.css')
script(type='text/javascript', src='bower_components/angular/angular.js')
script(type='text/javascript', src='/app/app.js')
body(ng-app='app')
div(ng-controller='testCtrl')
div hi
div {{ test }}
调试器继续抱怨:
Uncaught SyntaxError: Unexpected token < angular.js:1 Uncaught SyntaxError: Unexpected token < app.js:1
我意识到我的脚本标签没有关闭。它在调试器中显示如下。我是jade的新手
<script type='text/javascript', src='bower_components/angular/angular.js' </script>
<script type='text/javascript', src='/app/app.js' </script>
在</script>