define(["@loader", "module", "can/view/stache/system"], function(loader, module, systemStache){

  var renderer;

  var isNode = typeof process === "object" &&
    {}.toString.call(process) === "[object process]";

  if(!isNode) {
    steal.done().then(setup);
  }

  function setup(){
    loader.import(loader.main).then(function(r){
      renderer = r;

      render();
      liveReload();
    });
  }

  function isScript(el){
    return el.tagName && el.tagName.toLowerCase() === "script";
  }

  function cleanBody(){
		can.each(can.makeArray(can.$("body")[0].childNodes, function(el){
			can.remove(el);
		}));
  }

  function render(){
    cleanBody();
    var state = can.route.data;
    var frag = renderer(state);

    can.appendChild(can.$("body")[0], frag);
  }

  function liveReload(){
    if(!loader.has("live-reload")) {
      return;
    }

    loader.import("live-reload", { name: module.id }).then(function(reload){
      reload(render);

      reload(loader.main, function(r){
        renderer = r;
      });
    });
  }

  return {
    translate: systemStache.translate
  };
});

define(["@loader", "module", "can/view/stache/system"], function(loader, module, systemStache){

  var renderer;

  var isNode = typeof process === "object" &&
    {}.toString.call(process) === "[object process]";

  if(!isNode) {
    steal.done().then(setup);
  }

  function setup(){
    loader.import(loader.main).then(function(r){
      renderer = r;

      render();
      liveReload();
    });
  }

  function isScript(el){
    return el.tagName && el.tagName.toLowerCase() === "script";
  }

  function cleanBody(){
		can.each(can.makeArray(can.$("body")[0].childNodes), function(el){
			can.remove(el);
		});
  }

  function render(){
    cleanBody();
    var state = can.route.data;
    var frag = renderer(state);

    can.appendChild(can.$("body")[0], frag);
  }

  function liveReload(){
    if(!loader.has("live-reload")) {
      return;
    }

    loader.import("live-reload", { name: module.id }).then(function(reload){
      reload(render);

      reload(loader.main, function(r){
        renderer = r;
      });
    });
  }

  return {
    translate: systemStache.translate
  };
});

Make autorender plugin work