Skip to content

Commit

Permalink
Merge pull request bolt#1280 from logansam/patch-1
Browse files Browse the repository at this point in the history
Update menu.md
  • Loading branch information
bobdenotter authored Nov 6, 2023
2 parents 4ef549f + 3c0ea6f commit 10799bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/twig-components/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ arguments in Twig. For example:
{{ menu(
identifier = 'foo',
template = 'partials/_menu_foo.twig',
params = {'withsubmenus': false, 'class': 'myclass'}
class = 'myclass'
withsubmenus = false
) }}
```

Which is equivalent to this shorthand version:

```twig
{{ menu('foo', 'partials/_menu_foo.twig', {'withsubmenus': false, 'class': 'myclass'}) }}
{{ menu('foo', 'partials/_menu_foo.twig', 'myclass', false) }}
```

Doing this will render the menu `foo`, using the template `_menu_foo.twig`. The
Expand Down

0 comments on commit 10799bc

Please sign in to comment.