public function render($name, $data = null)
    {
        if (! isset($this->macros[$name])) {
            throw new BadMethodCallException("Method [$name] does not exist.");
        }

        return call_user_func($this->macros[$name], $data);
    }