Renders the title block to output.
482653
public function render()
    {
        $this->output->writeln('');

        $lineLength = $this->getTerminalWidth();

        $lines = explode(PHP_EOL, wordwrap($this->message, $lineLength - (strlen($this->blockStyles[$this->style]['prefix']) + 3), PHP_EOL, true));
        array_unshift($lines, ' ');
        array_push($lines, ' ');

        foreach ($lines as $i => $line) {
            $prefix = str_repeat(' ', strlen($this->blockStyles[$this->style]['prefix']));
            if ($i === 1) {
                $prefix = $this->blockStyles[$this->style]['prefix'];
            }

            $line = sprintf(' %s %s', $prefix, $line);
            $this->output->writeln(sprintf('<%s>%s%s</>', $this->blockStyles[$this->style]['style'], $line, str_repeat(' ', $lineLength - Helper::strlenWithoutDecoration($this->output->getFormatter(), $line))));
        }

        $this->output->writeln('');
    }
725703
function renderEmptyBlocksFix() {
        var emptyBlocksCSS;

        // IE10+
        if (getDocumentMode() >= 10) {
          emptyBlocksCSS = '';
          each('p div h1 h2 h3 h4 h5 h6'.split(' '), function (name, i) {
            emptyBlocksCSS += (i > 0 ? ',' : '') + name + ':empty';
          });

          editor.contentStyles.push(emptyBlocksCSS + '{padding-right: 1px !important}');
        }
      }
53363
private function buildTitle()
	{
		$this->layout_ui->getWidget('main_frame')->title =
			sprintf(Swat::_('%s Demo'), $this->available_demos[$this->demo]);
	}
1042922
protected function _renderBlocks($name, $attribs = array())
    {
        $html   = '';
        $count  = 1;
        $blocks = $this->getBlocks($name);

        foreach($blocks as $block)
        {
            //Set the block attributes
            if($count == 1) {
                $attribs['rel']['first'] = 'first';
            }

            if($count == count($blocks)) {
                $attribs['rel']['last'] = 'last';
            }

            if(isset($block['attribs'])) {
                $block['attribs'] = array_merge((array) $block['attribs'], $attribs);
            } else {
                $block['attribs'] = $attribs;
            }

            //Render the block
            $content = $this->_renderBlock($block);

            //Prepend or append the block
            if($block['extend'] == 'prepend') {
                $html = $content.$html;
            } else {
                $html = $html.$content;
            }

            $count++;
        }

        return $html;
    }
252231
public function render()
    {
        if (!empty(self::$titleList->toArray())) {
            return '<title>' . implode('', self::$titleList->toArray()) . '</title>' . PHP_EOL;
        } else {
            return false;
        }
    }
490352
def render_title(options={})
      result = ::Liquid::Template.parse(title).render(optional_data(options))
    rescue => e
      log_error(e)
    ensure
      return result.to_s
    end
1359377
def render_title(tags)
      normalized_meta_tags[:title] = meta_tags.page_title
      normalized_meta_tags[:site] = meta_tags[:site]
      title = meta_tags.extract_full_title
      normalized_meta_tags[:full_title] = title
      tags << ContentTag.new(:title, content: title) if title.present?
    end
1275382
function renderPartTitle( $args ) {
		unset( $args['label_for'], $args['class'] );
		$this->renderCheckbox(
			[
				'id' => 'part_title',
				'name' => 'pressbooks_theme_options_' . $this->getSlug(),
				'option' => 'part_title',
				'value' => ( isset( $this->options['part_title'] ) ) ? $this->options['part_title'] : '',
				'label' => $args[0],
			]
		);
	}
236533
public function render($layout = null, $title = null)
    {
        // Initialise:
        
        $html = '';
        
        // Load Requirements:
        
        $this->loadRequirements();
        
        // Obtain Cached HTML (if enabled):
        
        if ($this->isCacheEnabled()) {
            $html = self::getRenderCache()->get($this->getRenderCacheID());
        }
        
        // Render HTML:
        
        if (!$html) {
            
            // Render Self:
            
            $html = (string) $this->renderSelf($layout, $title);
            
            // Cache Rendered HTML:
            
            if ($this->isCacheEnabled()) {
                self::getRenderCache()->set($this->getRenderCacheID(), $html, $this->getRenderCacheLifetime());
            }
            
        } elseif (isset($_REQUEST['debug_cache'])) {
            
            // Output Debug Information:
            
            Debug::message(
                sprintf(
                    'Rendered from cache: "%s" [%s]; lifetime: %d second(s)',
                    $this->getTitle(),
                    $this->getRenderCacheID(),
                    $this->getRenderCacheLifetime()
                ),
                false
            );
            
        }
        
        // Answer HTML:
        
        return $html;
    }
182158
protected function render ()
  {
    $prop          = $this->props;
    $content       = exists ($prop->value) ? $prop->value : $this->getChildren ();
    $blocksService = $this->context->getBlocksService ();

    if ($prop->preRender && is_array ($content))
      $content = $this->attachSetAndGetContent ($content);

    if (exists ($name = $prop->of)) {
      if (!preg_match ('/^\w+$/', $name))
        throw new ComponentException($this, "Invalid block name: <kbd>$name</kbd>");
      if ($prop->byDefault && $blocksService->hasBlock ($name))
        return;
      $blocksService->getBlock ($name)->set ($content);
    }
    elseif (exists ($name = $prop->appendTo)) {
      if ($prop->byDefault && $blocksService->hasBlock ($name))
        return;
      $blocksService->getBlock ($name)->append ($content);
    }
    elseif (exists ($name = $prop->prependTo)) {
      if ($prop->byDefault && $blocksService->hasBlock ($name))
        return;
      $blocksService->getBlock ($name)->prepend ($content);
    }
    else throw new ComponentException($this,
      "One of these properties must be set:<p><kbd>of | appendTo | prependTo</kbd>");
  }
646612
public function renderSelf($layout = null, $title = null)
    {
        return $this->getController()->customise([
            'TitleText' => $title
        ])->renderWith(parent::class);
    }
374035
public function printHTMLHeader($title)
    {
        $this->_htmlFilterOutput(
            str_replace(
                '__TITLE__', $title,
                (empty($this->_output_header)
                ? '<html><head><title>__TITLE__</title></head><body><h1>__TITLE__</h1>'
                : $this->_output_header)
            )
        );
    }
527451
function render(content) {
  var deferred = q.defer();

  var blockType = "normal";
  var lines = content.split("\n");
  var blocks = {};
  for (var i=0; i<lines.length; i++) {
    var line = lines[i];

    if (line.substr(0,1) == "@") {
      blockType = line.substr(1).trim();
      if (blockType === "end") blockType = "normal";
      continue;
    }
    if (blocks[blockType])
      blocks[blockType] += line + "\n";
    else
      blocks[blockType] = line + "\n";
  }

  for (var key in blocks) {
    if (blocks.hasOwnProperty(key)) {
      try {
        blocks[key] = metaMarked(blocks[key]);
      } catch(err) {
        return deferred.reject(new Error(err));
      }
    }
    deferred.resolve(blocks);
  }

  return deferred.promise;
}
16687
def render(*args, &block)
      if $_compiler_stack && $_compiler_stack.last
        $_compiler_stack.last.render(*args, &block)
      else
        Origen.generator.compiler.render(*args, &block)
      end
    end
1230336
public function renderBlock(OutputBuffer $out, $name)
	{
		if(array_key_exists($name, $this->blocks))
		{
			$pblock = $this->outerContext->set('@block', $name);
			$pout = $this->outerContext->set('@out', $out);
			$pthis = $this->outerContext->set('@this', $this);
			
			try
			{	
				$this->blocks[$name]($out);
				
				return;
			}
			finally
			{
				$this->outerContext->set('@block', $pblock);
				$this->outerContext->set('@out', $pout);
				$this->outerContext->set('@this', $pthis);
			}
		}
		
		return parent::renderBlock($out, $name);
	}
975294
protected function renderTitle()
	{
		// Get default value for site name
		$sitename = $this->getConfig('title.sitename');

		// Value for title, site name if not defined
		$title = ($this->title) ? $this->title : $sitename;
		
		// Get default separator value
		$separator = $this->getConfig('title.separator');

		// Should title show site name
		$show = $this->getConfig('title.show_sitename');

		// Get title position
		$first = $this->getConfig('title.first');

		// Show site name in title
		if ($show)
		{
			// Site name and title values are the same
			if ($sitename == $title)
			{
				return $sitename;
			}
			
			// No site name is defined
			elseif (!$sitename)
			{
				return $title;
			}
			
			// No title is defined
			elseif (!$title)
			{
				return $sitename;
			}
		
			// Get complete title
			else
			{
				return ($first) ? $title.$separator.$sitename : $sitename.$separator.$title;
			}
		}

		// Don't show site name in title
		else
		{
			return $title;
		}
	}
456297
public function renderHeader() {
		
		if ($this->title !== false) {
			echo CHtml::openTag('div', $this->headerHtmlOptions);
			if ($this->title) {
				$this->title = '<h3 class="panel-title" style="display: inline;">' . $this->title . '</h3>';

				if ($this->headerIcon) {
					if (strpos($this->headerIcon, 'icon') === false && strpos($this->headerIcon, 'fa') === false)
						$this->title = '<span class="glyphicon glyphicon-' . $this->headerIcon . '"></span> ' . $this->title;
					else
						$this->title = '<i class="' . $this->headerIcon . '"></i> ' . $this->title;
				}
				
				$this->renderButtons();
				echo $this->title;
			}
			echo '<div class="clearfix"></div>';
			echo CHtml::closeTag('div');
		}
	}