public function getThemeByRoute($path)
    {
        $text = new Text();
        // there's probably a more efficient way to do this
        foreach ($this->themePaths as $lp => $layout) {
            if ($text->fnmatch($lp, $path)) {
                return $layout;
            }
        }
        return false;
    }