protected function parseTemplateContent($result, $fileName)
    {
        $content = array_get($result, 'content');

        $processed = FileParser::parse($content);

        $content = [
            'fileName' => $fileName,
            'mTime'    => array_get($result, 'mTime'),
            'content'  => $content,
            'markup'   => $processed['markup'],
            'code'     => $processed['code'],
        ];

        if (!empty($processed['data']))
            $content = $content + $processed['data'];

        return $content;
    }