text: /*
   *
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
   *   http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing,
   * software distributed under the License is distributed on an
   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   * KIND, either express or implied.  See the License for the
   * specific language governing permissions and limitations
   * under the License.
   *
   */
  var render = function (theme, data, meta, require) {
  
      if(data.error.length == 0 ){
          theme('index', {
              page_meta: [
                  {
                      partial:'index_title',
                      context:{
                          page_title:'Apache Stratos My Cartrides',
                          page_description:'Apache Stratos My Cartrides'
                      }
                  }
              ],
              header:[
                  {
                      partial: 'index_header',
                      context:{
                          user_name:'admin@wso2.com'
                      }
                  }
              ],
              sub_header:[
                  {
                      partial:'index_sub_header',
                      context:{
                          breadcrumbPathLevelOne:data.breadcrumbPathLevelOne,
                          breadcrumbPathLevelTwo:data.breadcrumbPathLevelTwo
                      }
                  }
              ],
              left_menu:[
                  {
                      partial:'index_left_menu',
                      context:{
                          left_menu:data.left_menu
                      }
                  }
              ],
              right_menu_help:[
                  {
                      partial:'index_right_menu_help',
                      context:{
  
                      }
                  }
              ],
              content: [
  
                  {
                      partial: 'my_cartridges_info',
                      context:{
                          content_title:'My Cartridge: ',
                          content_body:{
                              myCartridgeInfo: data.myCartridgeInfo
                          }
  
                      }
                  }
              ]
          });
  
      }else{
          theme('index', {
              page_meta: [
                  {
                      partial:'index_title',
                      context:{
                          page_title:'Apache Stratos Home - Error',
                          page_description:'Apache Stratos Home - Error'
                      }
                  }
              ],
              header:[
                  {
                      partial: 'index_header',
                      context:{
                      }
                  }
              ],
              content: [
  
                  {
                      partial: 'error_page',
                      context:{
                          error:data.error,
                          content_title:'Sorry Something went Wrong...! ',
                          content_body:{
  
                          }
  
                      }
                  }
              ]
          });
  
      }
  };