Different templates for different pages - deseven/Vodka GitHub Wiki

Set different templates for different pages possible through adding condition to $vodka->loadTemplate("demo"); in index.php: https://github.com/deseven/vodka-demo/blob/master/index.php#L8

As an example it may be done via using switch like in an example https://github.com/deseven/vodka-demo/blob/master/index.php#L22:

$page = $vodka->getCurrentPage();
switch ($page["name"]) {
    case "main":
        $vodka->loadTemplate("demo"); // loading template
        break;
    case "second":
        $vodka->loadTemplate("anotherTemplate"); // loading template
        break;
    case "third":
        $vodka->loadTemplate("yetAnotherTemplate"); // loading template
}