public function buildFileContents()
    {
        $data = array('pages' => $this->getPages());
        $output = array();
        $output[] = "var tipuesearch = " . json_encode($data) . ";";
        $output[] = null;

        return implode(PHP_EOL, $output);
    }