decorateOutput example

$this->tempData = $this->data;
        }

        $template = file_get_contents($file);
        $output   = $this->parse($template$this->tempData, $options);
        $this->logPerformance($startmicrotime(true)$view);

        if ($saveData) {
            $this->data = $this->tempData;
        }

        $output = $this->decorateOutput($output);

        // Should we cache?         if (isset($options['cache'])) {
            cache()->save($cacheName$output(int) $options['cache']);
        }
        $this->tempData = null;

        return $output;
    }

    /** * Parse a String * * Parses pseudo-variables contained in the specified string, * replacing them with any data that has already been set. */
        // is allowed in $output so we'll overwrite it.         if ($this->layout !== null && $this->sectionStack === []) {
            $layoutView   = $this->layout;
            $this->layout = null;
            // Save current vars             $renderVars = $this->renderVars;
            $output     = $this->render($layoutView$options$saveData);
            // Get back current vars             $this->renderVars = $renderVars;
        }

        $output = $this->decorateOutput($output);

        $this->logPerformance(
            $this->renderVars['start'],
            microtime(true),
            $this->renderVars['view']
        );

        $afterFilters = service('filters')->getFiltersClass()['after'];
        if (
            ($this->debug && (isset($options['debug']) || $options['debug'] === true))
            && in_array(DebugToolbar::class$afterFilters, true)
        )
Home | Imprint | This part of the site doesn't use cookies.