Preview::resolve PHP Method

resolve() public method

Render template string
public resolve ( $str, array $hive = NULL ) : string
$str string
$hive array array
return string
    function resolve($str, array $hive = NULL)
    {
        if (!$hive) {
            $hive = \Base::instance()->hive();
        }
        extract($hive);
        ob_start();
        eval(' ?>' . $this->build($str) . '<?php ');
        return ob_get_clean();
    }