KnpLabs / KnpMenu

Menu Library for PHP
https://knplabs.com
MIT License
1.39k stars 191 forks source link

Add template for boostrap 4 etc.? #341

Open garak opened 3 years ago

garak commented 3 years ago

In every project I use this library, I find myself adding a template of mine to render with Bootstrap 4. I think it could nice to provide here templates for major CSS vendors (Bootstrap, Foundation, etc.), just like Symfony is doing for its form themes.

alexseif commented 2 years ago

I was just searching for this for the same reason. My suggestion would be to have config in yaml that sets some stuff, I'm trying to write a proper issue

alexseif commented 2 years ago

https://github.com/KnpLabs/KnpMenu/issues/368 what do you thing?

garak commented 2 years ago

@alexseif thanks for your effort, but indeed it's not exactly was I was thinking of. I'm afraid that your approach is not really strong, because we don't know if in the future the differences between bootstrap classes will be limited to CSS classes. A template, as mentioned in my original message, would provide better flexibility