Skip to content

Commit

Permalink
Update 3-Templates.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jan 23, 2025
1 parent 630cc5d commit ca23f69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/3-Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,9 @@ If you want to use the `format_date` filter **with other locales than "en"**, yo

## Components

Cecil provides a components logic to help you build your templates.
Cecil provides a components logic to help you build your templates with the _Twig components extension_.

### Twig components extension

```twig
{# /components/button.twig #}
Expand All @@ -1309,21 +1311,19 @@ Cecil provides a components logic to help you build your templates.
</button>
```

### Twig components extension

See official _Twig components extension_ documentation: <https://github.com/giorgiopogliani/twig-components#readme>.

## Extend

### Twig extensions
### Functions and filters

:::tip
You can add custom [functions](3-Templates.md#functions) and [filters](3-Templates.md#filters) with a [_Twig extension_](7-Extend.md#twig-extension).
:::

### Theme

It’s easy to build a Cecil theme: you just have to create a folder `<theme>` with the following structure:
It’s easy to build a theme: you just have to create a folder `<theme>` with the following structure:

```plaintext
<mywebsite>
Expand Down

0 comments on commit ca23f69

Please sign in to comment.