Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rehhouari authored Jan 6, 2024
1 parent e55d5c6 commit ff4629a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Then you access paramaters with `$router.params.X`.
### Inline templates

If you add a child to the `<template>` element, Pinecone Router automatically adds an `x-if` attribute to it that will evaluate to true when the route is matched, therefore displaying the content:
If you add a child to the `<template>` element, Pinecone Router will render it when the route is matched. It works similair to `x-if` therefore they cannot be used together, use [`x-handler`](#x-handler) instead for conditionally showing a template.

```html
<template x-route="/">
Expand Down

0 comments on commit ff4629a

Please sign in to comment.