I'm twig beginner, I Want to get the CSS file content and not the path to be clear, this file is located in:-
Bundle/Ressources/public/css/'~var~'/main.css
var is a dynamic variable, so I used the source function of twig, but it seems that I don't point to the right path. Here is my code:
<style>
{{ source('/Bundle/Resources/public/css/'~var~'/main.css', ignore_missing = true) }}
</style>
Any help please.