From 83fec0b53ae04e23948b981cf845ce0d476ba22a Mon Sep 17 00:00:00 2001 From: horus Date: Mon, 15 Mar 2021 22:38:11 +0100 Subject: Inline bpm / tanz --- app.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.php') diff --git a/app.php b/app.php index fa659bd..ea81dfe 100644 --- a/app.php +++ b/app.php @@ -16,7 +16,11 @@ $twig->addFunction($function); $function = new \Twig\TwigFunction('maincss', function() { echo readfile(__DIR__ . '/public/css/bootstrap.min.css'); }); +$twig->addFunction($function); +$function = new \Twig\TwigFunction('dump_dances', function() { + echo readfile(__DIR__ . '/views/tools/bpm/dances.json'); +}); $twig->addFunction($function); /** -- cgit v1.2.3