CouscousPHP / Couscous

Couscous is good.

Home Page:https://couscous.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom twig extensions

Nyholm opened this issue · comments

Excuse my ignorance.

Is there a way to add custom twig extensions?

My current scenario is that I build my assets with webpack. I would like to use the manifest file to map "virtual names" for real names.

{
  "assets/app.css": "/assets/app.123123123.css",
  "assets/app.js": "/assets/app.123123123.js",
  "assets/image/logo.png": "/assets/image/logo.123123123.png"
}

If I can somehow add a custom Twig extension or any PHP code during the build process, then I can do whatever I want =)

Wohoo. I solved it myself.

Couscous just got 2 units more awesome. =)