Skip to content

Instantly share code, notes, and snippets.

@shayanjm
Created December 23, 2013 22:45
Show Gist options
  • Save shayanjm/9f48db325c9562d9e1cf to your computer and use it in GitHub Desktop.
Save shayanjm/9f48db325c9562d9e1cf to your computer and use it in GitHub Desktop.
Gist of Grunt Error + Code in question
------> Error:
Running "jade:dynamic_mappings" (jade) task
Verifying property jade.dynamic_mappings exists in config...OK
Files: app/front/views/app.jade -> dist/app.html
Files: app/front/views/includes/navbar.jade -> dist/includes/navbar.html
Files: app/front/views/layout.jade -> dist/layout.html
Files: app/front/views/login.jade -> dist/login.html
Files: app/front/views/signup.jade -> dist/signup.html
Files: app/front/views/splash.jade -> dist/splash.html
Options: namespace="JST", separator="\n\n", amd=false
Options: namespace="JST", separator="\n\n", amd=false
Reading app/front/views/app.jade...OK
>> Unexpected token name «ui», expected punc «)» (line: 356, col: 49, pos: 14798)
------> app.jade:
extends layout
block content
.container(ng-controller="AppCtrl")
.row.row-offcanvas.row-offcanvas-left(ng-class="{'active': toggleOffCanvas}")
.col-xs-6.col-sm-3.sidebar-offcanvas(role="navigation")#sidebar
.list-group
a(ui-sref="stats" ui-sref-active="active").list-group-item Stats
a(ui-sref="settings" ui-sref-active="active").list-group-item Settings
//- a(href="#" ui-sref-active="active").list-group-item Feed
//- a(href="#" ui-sref-active="active").list-group-item Log
.col-xs-12.col-sm-9
p.pull-right.visible-xs
button.btn.btn-primary.btn-xs(type="button", ng-click="toggleOffCanvas = !toggleOffCanvas")
| Toggle Nav
div(ui-view="")
------> Gruntfile.js Snippet of Jade task
jade: {
dynamic_mappings: {
files: [
{
expand: true,
cwd: '<%= pasteye.app %>/front/views/',
src: ['**/*.jade'],
dest: '<%= pasteye.dist %>',
ext: '.html'
}
]
},
compile: {
options: {
data: {
debug: true
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment