how to use config option in package.json jam/config #120

mic0331 opened this Issue Dec 28, 2012 · 2 comments

2 participants



First of all, sorry if my question is a bit silly. I'm pretty new in jamjs ...
I have in my package.json this config for jam

   "jam": {
        "packageDir": "app/public/js/vendor",
        "baseUrl": "app/public",
        "dependencies": {
          "backbone": null,
          "cs": null
        "config": {
          "path": {
            "templates": "app/public/js/templates.combined"

when I try to load from a simple page the "templates" reference, the browser is not able to map "templates" with "app/public/js/templates.combined"

   <!doctype html>

      hello world
      <script src="js/vendor/require.js"></script>
        require(['../js/models/contact', "templates"], function(Contact, templates) {
          var c = new Contact({ name: 'michael' });

My question - How should i use the config to reference my internal template.

@mic0331 mic0331 closed this Dec 28, 2012
@mic0331 mic0331 reopened this Dec 28, 2012

I have try to use the "include" option but i still have the issue.


I'm having the exact same issue, any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment