Skip to content

Commit

Permalink
chore: package renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
fiadone committed Jan 3, 2022
1 parent 4b306fe commit f4e029f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 832 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# @fiad/vite-plugin-twig
# vite-plugin-twig

A simple *[Vite](https://vitejs.dev/guide/api-plugin.html)* plugin for *[Twig](https://twig.symfony.com/doc/3.x/)* template engine usage (based on *[twig.js](https://github.com/twigjs/twig.js/)*).
[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).

---

## Installation
```
npm i -D @fiad/vite-plugin-twig
npm i -D vite-plugin-twig
```


## Usage

```js
/* vite.config.js */
import twig from '@fiad/vite-plugin-twig'
import twig from 'vite-plugin-twig'

export default {
plugins: [
Expand Down Expand Up @@ -46,7 +46,7 @@ __type__ `{ [key: string]: any }`

__default__ `{}`

The global data to be injected in each template.
The global variables to be injected in each template.

#### `settings`
__type__ `{ [key: string]: any }`
Expand Down
Loading

0 comments on commit f4e029f

Please sign in to comment.