ker/com/x-widget/x-widget.com.js
function getRootChildren( root, libs, com ) {
  var src = ( root.attribs.src || "" ).trim( );
  if ( src.length > 0 ) {
    if (!libs.fileExists( src )) {
      libs.fatal( "File not found: \"" + src + "\"!" );
    }
    // Add a compilation dependency on the include file.
    libs.addInclude( src );
    var content = libs.readFileContent( src );
    root.children = libs.parseHTML( content );
  }
}
function getRootChildren( root, libs, com ) {
  var src = ( root.attribs.src || "" ).trim( );
  if ( src.length > 0 ) {
    if (!libs.fileExists( src )) {
      libs.fatal( "File not found: \"" + src + "\"!" );
    }
    // Add a compilation dependency on the include file.
    libs.addInclude( src );
    var content = libs.readFileContent( src );
    root.children = libs.parseHTML( content );
  }
}
function getRootChildren ( root , libs , com ) { var src = ( root . attribs . src || "" ) . trim ( ) ; if ( src . length > 0 ) { if ( ! libs . fileExists ( src ) ) { libs . fatal ( "File not found: \"" + src + "\"!" ) ; } // Add a compilation dependency on the include file. libs . addInclude ( src ) ; var content = libs . readFileContent ( src ) ; root . children = libs . parseHTML ( content ) ; } }
If root has got a `src` attribute, we load a file and put its content as children of `root`.
If root has got a src attribute we load a file and put its content as children of root .