code: function layoutToHTML( d ) {
    var content = [];
    var laCls = '';
    var layoutId = '';
    if ( d.layoutId && d.layoutId != '' ) { 
      laCls = ' class="'+d.layoutId+'"'; 
      layoutId = d.layoutId; 
    }
    content.push( '<div id="header" '+laCls+'></div>' );
    content = content.concat( rowsToHTML( d.rows, d.page_width, layoutId ) );
    content.push( '<div id="footer" '+laCls+'></div>' );
    return content;
  }
docs: =====================================================================================================