Closed psperneac closed 8 years ago
First, as to loading extra models. You have two options, effectively:
extraFiles=../../js/app/model/foamModels.js
to your command (after the foam.build.BuildApp
../../js/com/foo/bar/SomeModel.js
sort of hierarchy, Java-style, and then add extraClassPaths=../../js
to your BuildApp
command.Then you should be able to revert the hack to the foam.js load script. That should also get your code included properly in the built output, in case it wasn't already.
As to rendering icons correctly, you should double-check that you've actually got a <link>
tag for the fonts.css
file included in your HTML page, and that that file is loading correctly.
Thanks! I got images now :) I'll change my hack back... did not know how classpath, extraclasspath or extrafiles works...
foam was built like this:
node --harmony ../../bower_components/foam/tools/foam.js --classpath=../../js/app/model/foamModels.js foam.build.BuildApp targetPath=. controller=com.employtouch.webclock.WebClockApp includeFoamCSS=true precompileTemplates=true
only modification was on the foam.js file itself as I didn't know how to 'require' other paths:
I tried to figure out where those images are coming from, but the dom is pretty complicated, not sure if it is the canvas or an img with an empty 'src'