code: function cacheAndCompile(filename, str) {
      var layout_template = handlebars.compile(str);
      if (options.cache) {
        cache[filename] = layout_template;
      }
  
      render_with_layout(layout_template, options, cb);
    }
docs: TODO check if layout path has .hbs extension