public function addPaths($paths) { // Get views specified in herbert. $namespaces = Helper::get('views'); foreach ($namespaces as $namespace => $views) { foreach ((array) $views as $view) { // Add to timber $paths array. array_unshift($paths, $view); } } return $paths; }
public function inline_js() { $this->render_js_vars(); echo view('@AgreableQuizPlugin/scripts.twig', ['js_path' => Helper::asset('app.js')])->getBody(); }