0

I am new to backbone Bloilerplate.I tried to follow this guide and installed grunt-bb

and then did this:

mkdir todomvc
bbb int

Bloilerplate files successful.Then

bbb init:todomvc

To domvc files generated also. Then ran the server as

bbb server

The server is now listening at localhost:8000

The problem is that my screen is blank and I get this 404 in localhost:8000/assets/css/h5bp.css. Otherwise other files like backbonejs are loaded.

The main problem is that there is nothing on the page(Empty page). Is there any issue with bbb that I should know? I am stuck, kindly help.Thank you.

2
  • not an answer to your problem but you could also try yeoman: yeoman.io - it also comes with backbone and bbb generators plus a bunch of other features..
    – tmaximini
    Nov 4, 2012 at 11:22
  • Thanks for reply. Trying yeoman. I will let you know the outcome Nov 4, 2012 at 11:56

1 Answer 1

1

It seems that bbb's directory layout has evolved but the included todomvc example hasn't been updated yet. You can now find HTML5 Boilerplate CSS in vendor/h5bp/css (normalize.css and main.css).

You may find that you've got two index.css files (in assets/css/index.css and app/styles/index.css). In this case, keep the last one, move your assets/css/todo.css in app/styles/ and reference it in app/styles/index.css : @import "todo.css;". Finally, you'll need to update your index.html:

<link rel="stylesheet" href="/app/styles/index.css">

Note that all the JS files haved moved to /vendor too.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.