@Ramyhakam those “asset” function aren’t part on twig, they are part of frameworks like symfony fullstack and probably others got a solution for assets. So you ca try to find a existing solution (twig functions) for slim or build them yourself. A few of them based on the following library: https://github.com/kriswallsmith/assetic
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
How to combine twig-assets and Slim4?
|
11 | 4154 | October 4, 2019 | |
|
Can not load css and js file slim 4, twig
|
2 | 2397 | March 31, 2020 | |
|
Slim Twig View rendering - CSS and JS not working
|
3 | 1418 | September 14, 2020 | |
|
Cannot render assets
|
0 | 877 | October 3, 2017 | |
|
Twig-assets in Slim4 route problem
|
4 | 1237 | September 15, 2020 |