including html in modules

51 views
Skip to first unread message

Costa

unread,
Apr 6, 2012, 9:01:15 PM4/6/12
to ka...@googlegroups.com
Hi!

I'm trying to include html templates by using the modules package. Here's the relevant part of my kanso.json

  "modules": ["lib", "templates/base.html", "templates/movies.html"],
  "load": "lib/app",
  "dependencies": {
    "attachments": null,
    "modules": null,

This works fine, but I'd like to include the "templates" directory as a whole.  The problem is that the modules package ignores the html files.  Is there a setting I can change to have it include html files?

Best,
Costa

Matt J. Sorenson

unread,
Apr 9, 2012, 4:55:52 PM4/9/12
to ka...@googlegroups.com
what templating engine are you using (or intending to use)?

Costa

unread,
Apr 9, 2012, 6:24:16 PM4/9/12
to ka...@googlegroups.com
I'm using underscore.  I tried out so many before settling on it, but I'm kinda attached. 

Matt J. Sorenson

unread,
Apr 17, 2012, 9:06:44 AM4/17/12
to ka...@googlegroups.com
I'm working on my templating system in an app right now, but I am using dustjs (along w/ duality & duality-dust). the relevant part of my kanso.json is:

"dust" : {
"templates" : "templates"
},

"duality" : {
"base_template" : "base.html"
},

then my modules directive is only loading "lib", it doesn't need to know about my templates. I'm not sure if underscore can be made to work the same or similarly, but maybe explore that?

Costa

unread,
Apr 23, 2012, 11:32:24 AM4/23/12
to ka...@googlegroups.com
Hmm...I might try duality.  Thanks for the help!!!
Reply all
Reply to author
Forward
0 new messages