/** * Returns the HTML document. * * @param array $data - The data to render * @param boolean $beatiful - To pretty print or not * @param string $doctype - The doctype of this html * @return string */ public function render($data = null, $beatiful = false, $doctype = '') { foreach ($this->aliasFor as $selector => $alias) { $this[$selector] = $this[$alias]; } $data = $data ?: $this->getArrayCopy(); return $this->document->decorate($data)->render($beatiful, $doctype); }
public function render($data = null, $beatiful = false) { $this->resolveAliases(); $data = $data ?: $this->getArrayCopy(); return $this->document->decorate($data)->render($beatiful); }