~bcsaller/juju-gui/routing-hash-query

« back to all changes in this revision

Viewing changes to lib/templates.js

  • Committer: Jeff Pihach
  • Date: 2013-06-06 21:05:24 UTC
  • mfrom: (702.1.9 y-view-container)
  • Revision ID: jeff.pihach@canonical.com-20130606210524-679j0bauy34guj2g
Implements the view-container module

The view-container module is responsible for rendering viewlets
into the dom and then sending their configuration to the
bindengine.

The bindengine and view-container were developed separately
but in parallel so there may be some issues wrt integration
at this time.

R=rharding, benjamin.saller
CC=
https://codereview.appspot.com/10090045

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
 
206
206
// When application specific templates change regen
207
207
function watchTemplates(cb) {
208
 
  Y.Array.each(config.server.templates_dirs, function(dir) {
 
208
  Y.Array.each(config.server.template_dirs, function(dir) {
209
209
    fs.watch(dir, function(event, filename) {
210
210
      //on dir change regen the cache
211
211
      ifValidFile(path.join(dir, filename), function() {