-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested conditioning skin markup behaves weirdly #6818
Comments
This is indeed a limitation of our template engine. We should document that. Fixing this is not trivial and also not a high prio. |
roundcube/roundcubemail#6818 Signed-off-by: Jack Cherng <jfcherng@gmail.com>
This is a must have feature. Maybe that could be an option, if you should tag your condition with a name. For example:
It is insane that now I feel this template engine is good for nothing, and I always should use objects, mixing languages and do the HTML output from PHP. |
Ok guys, the best way is if you compelety change the roundcube engine. Absolutelly unusable. Here is my solution. https://github.com/vaso123/Twiggy/blob/master/twiggy.php Use twig. My example of course only a skeleton, but you can improve it. |
Personally I like Twig's functionality (but not it's syntax) since I have used it in several (Slim/Symfony) projects. But I don't think it would be used in official RC because it will just break every existing skin, which is a big BC break imo. |
Fixed. |
Environment
Problem
Since I don't see a note in Wiki that RC's skin markup does not allow doing this common template feature, I consider this as a bug.
=> outputs
A C
(Good)=> outputs
D
(Bad, should beB C
)=> outputs
B C D
(Bad, should beD
)=> outputs
B C D
(Bad, should beD
)Reproducer
I replace the whole
skins/elastic/templates/login.html
with the following codes and visit the login page to do above tests.The text was updated successfully, but these errors were encountered: