backbone.js-jquerymobile-boilerplate-template icon indicating copy to clipboard operation
backbone.js-jquerymobile-boilerplate-template copied to clipboard

Missing handlebars

Open alphaadidas opened this issue 11 years ago • 6 comments

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!

alphaadidas avatar Aug 26 '12 04:08 alphaadidas

Hi I would expect that running Bbb handlebars will generate it. Have you tried already? Am 26.08.2012 06:35 schrieb "Glen" [email protected]:

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.

raDiesle avatar Aug 26 '12 08:08 raDiesle

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?)

johnmw avatar Aug 28 '12 18:08 johnmw

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.

raDiesle avatar Aug 28 '12 19:08 raDiesle

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?

kvan1 avatar Oct 29 '12 10:10 kvan1

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

raDiesle avatar Oct 29 '12 12:10 raDiesle

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.

kvan1 avatar Oct 29 '12 15:10 kvan1