Adam Jakś
Adam Jakś

Reputation: 73

Including .css files in twig/volt

Is that possible to include a css files in volt templates, just like another volt file? Something like this?

{% include 'style.css' %}

If not - why?

Upvotes: 0

Views: 271

Answers (1)

CHE6yp
CHE6yp

Reputation: 86

Afaik it's not possible. Well, it is, if you want your css file as a plain text. And if that file is located within your views directory. But there is no need to do that (other then plain text, which i assume is not what you want). You can include css just like in any other regular html.

<link rel="stylesheet" type="text/css" href="style.css">

Upvotes: 0

Related Questions