function __getContentVars()
 {
     return array_merge(parent::__getContentVars(), array('_data'));
 }
 /**
  * Return a Controller (with full init-code).
  * 
  * @param Renderable $content Content to be passed out
  * @return AjaxResponse The created response
  */
 public static function Renderable(Renderable $content)
 {
     $wrapped = new stdClass();
     $wrapped->html = $content->WdfRenderAsRoot();
     if ($content->_translate && system_is_module_loaded('translation')) {
         $wrapped->html = __translate($wrapped->html);
     }
     foreach ($content->__collectResources() as $r) {
         if (starts_with(pathinfo($r, PATHINFO_EXTENSION), 'css')) {
             $wrapped->dep_css[] = $r;
         } else {
             $wrapped->dep_js[] = $r;
         }
     }
     $res = AjaxResponse::Json($wrapped);
     $res->_translated = true;
     return $res;
 }