render(indent) {
    let markup = '';
    
    /** Loop through each content item and render to markup */
    this.content().forEach((content) => {
      if ( typeof content == 'function' )
        markup += ' '.repeat(indent) + content.toString().split('\n').slice(1, -1).join('\n' + ' '.repeat(indent)) + '\n';
      else
        markup += content.render(indent);
    });
        
    return markup;
  }
/**
   * Render the page.
   * @signature render(number) Render this page with (number) spaces of indentation
   * @return The rendered HTML
   */
Render the page.
@signature render(number) Render this page with (number) spaces of indentation
@return The rendered HTML
Render the page . @signature render ( number ) Render this page with ( number ) spaces of indentation @return The rendered HTML
render(indent) {
    let markup = '';
    this.content().forEach((content) => {
      if ( typeof content == 'function' )
        markup += ' '.repeat(indent) + content.toString().split('\n').slice(1, -1).join('\n' + ' '.repeat(indent)) + '\n';
      else
        markup += content.render(indent);
    });
    return markup;
  }
render ( indent ) { let markup = '' ; this . content ( ) . forEach ( ( content ) => { if ( typeof content == 'function' ) markup += ' ' . repeat ( indent ) + content . toString ( ) . split ( '\n' ) . slice ( 1 , - 1 ) . join ( '\n' + ' ' . repeat ( indent ) ) + '\n' ; else markup += content . render ( indent ) ; } ) ; return markup ; }
Render the page.
Render the page .
/** Loop through each content item and render to markup */