-1

I tried it many time, but not able to execute it.

Already I have a static website and it not working if I change its extension to twig format, like index.html to index.html.twig.(css and javascript not working if I use twig)

1 Answers1

0

To include css and js files the easiest (but not recommended) way is to put css and js files inside /web/ directory and in template file include it by relative path (when "web" directory is treated as main site directory).

If You want to read about proper way of doing it look:

Community
  • 1
  • 1
KLXN
  • 660
  • 5
  • 13