parseSingle example

        $template = $this->parsePlugins($template);

        // loop over the data variables, replacing         // the content as we go.         foreach ($data as $key => $val) {
            $escape = true;

            if (is_array($val)) {
                $escape  = false;
                $replace = $this->parsePair($key$val$template);
            } else {
                $replace = $this->parseSingle($key(string) $val);
            }

            foreach ($replace as $pattern => $content) {
                $template = $this->replaceSingle($pattern$content$template$escape);
            }
        }

        return $this->insertNoparse($template);
    }

    /** * Parse a single key/value, extracting it */
Home | Imprint | This part of the site doesn't use cookies.