Skip to content

Commit

Permalink
Merge pull request #4 from arjank/feature/configurable_templates
Browse files Browse the repository at this point in the history
Make template configurable
  • Loading branch information
bobdenotter authored Sep 2, 2020
2 parents 10a8a1d + 6fa8be4 commit eb30a8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FormRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public function run(string $formName = '')
$honeypotName = false;
}

return $this->twig->render('@boltforms/form.html.twig', [
$template = $config->get('templates')['form'];

return $this->twig->render($template, [
'formconfig' => $formConfig,
'debug' => $config->get('debug'),
'honeypotname' => $honeypotName,
Expand Down

0 comments on commit eb30a8f

Please sign in to comment.