github.com/ernestokarim/closurer@v0.0.0-20130119214741-f245d086c750/templates/raw.html (about)

     1  {{define "base"}}
     2  
     3  window.CLOSURE_NO_DEPS = true;
     4  window.CLOSURE_BASE_PATH = 'http://localhost{{.Port}}/input/';
     5  
     6  {{.Content}}
     7  
     8  var ns = [{{.Namespaces}}];
     9  for(var i = 0; i {{.LT}} ns.length; i++) {
    10    goog.require(ns[i]);
    11  }
    12  
    13  document.addEventListener('DOMContentLoaded', function() {
    14    var css = "{{.Css}}";
    15    if(css.length > 0)
    16      goog.style.installStyles(css);
    17  });
    18  
    19  {{end}}