From e4149f7c536199575a1e6b2b8b54eec1c3c1160c Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 24 Feb 2021 15:09:40 +0100 Subject: initial commit --- app.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app.php (limited to 'app.php') diff --git a/app.php b/app.php new file mode 100644 index 0000000..5e5e5e9 --- /dev/null +++ b/app.php @@ -0,0 +1,19 @@ +addFunction($function); + +$function = new \Twig\TwigFunction('maincss', function() { + echo readfile(__DIR__ . '/public/css/bootstrap.min.css'); +}); + +$twig->addFunction($function); -- cgit v1.2.3