You are here

public function BrowserRenderTrait::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserRenderTrait.php \Zumba\GastonJS\Browser\BrowserRenderTrait::render()

Renders a page or selection to a file given by path

Parameters

string $path:

array $options:

Return value

mixed

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserRenderTrait.php, line 41

Class

BrowserRenderTrait
Trait BrowserRenderTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

public function render($path, $options = array()) {
  $fixedOptions = $this
    ->checkRenderOptions($options);
  return $this
    ->command('render', $path, $fixedOptions["full"], $fixedOptions["selector"]);
}