Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Conditional Inheritance

Is there a way to implement "Conditional Inheritance" like in twig:

{% extends standalone ? "minimum.html" : "base.html" %}

When I tried to do this, I catch an error Syntax error, unexpected token IDENTIFIER...



22.3k
Accepted
answer

Conditional inheritance is not supported yet in Volt. You are more than welcome to add a NFR in our Github issue tracker.