raDiesle / backbone.js-jquerymobile-boilerplate-template

A template to use jquerymobile with backbone.js and handlebars.js
48 stars 10 forks source link

Missing handlebars #3

Open alphaadidas opened 11 years ago

alphaadidas commented 11 years ago

In the app/config.js, you have this entry:

    'handlebars.compiled':"../dist/debug/handlebars_packaged"

Can you check in the js file, or describe how to create the 'dist' locally.

thanks!

raDiesle commented 11 years ago

Hi I would expect that running Bbb handlebars will generate it. Have you tried already? Am 26.08.2012 06:35 schrieb "Glen" notifications@github.com:

In the app/config.js, you have this entry:

'handlebars.compiled':"../dist/debug/handlebars_packaged"

Can you check in the js file, or describe how to create the 'dist' locally.

thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/raDiesle/backbone.js-jquerymobile-boilerplate-template/issues/3.

johnmw commented 11 years ago

Hi, thanks for this boilerplate, it looks like a fantastic place to start.

The project seems to work using 'bbb server', however if I run 'bbb handlebars' and then try to load index.html locally, it will not work. (Chrome or Firefox).

Can you please describe how to build it so one can run it 'locally'? (ie, without using bbb server?)

raDiesle commented 11 years ago

Hi John,

thanks for the feedback, I'm looking forward to find people to help writing documentation or enhancing the code.

If you install e.g. firefox or in chrome/Internet explorer ( Press F12 and check console) use the Debug mode, do you get GET file:///C:/assets/css/index.css index.html:10 GET file:///C:/assets/css/jquerymobile.css index.html:11 GET file:///C:/assets/js/libs/require.js index.html:25 ?

Typical all kind of web applications, even during development, are run through a web-server due to several feature a web-server offers. I once developt some projects without a webserver, which is not worth the effort.

In the grunt.js you'll find a
server ... folders : { definition which acts like a link from one folder to another, when running a webserver.

If you want to use another webserver like apache, the mod_rewrite module is probably the right place to configure.

I would guess changing all paths withing the application and adopting the server ... folders : { configuration will not fix it.

kvan1 commented 11 years ago

Hi! Got a few pages running using bbb server and incorporated a live reload with the watch task. Small change but pretty handy - I'll send a PR if you're interested. I too am now looking for way to build a release to throw on a webserver. The grunt.js release task doesn't seem to function with the current structure, i.e. names a non-existent JST task, has concat calling for an app/alltemplates.js which isn't built. What are you building with to produce a dist?

raDiesle commented 11 years ago

Yeah nice, thank you! If you have ideas to improve, feel free to commit to it. bbb release or bbb debug will prepare a release

kvan1 commented 11 years ago

OK, but I'd first like to get to a working grunt.js to commit bbb release currently gives tons of lint error/warnings and removing it the jst task fails. Am I doing it wrong? the concat'ted files have no app code, just vendor.