Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markmead/alpinejs-tash

Use a more familiar syntax when rendering Alpine JS `{variables}` 🚀
https://github.com/markmead/alpinejs-tash

alpine-js alpinejs alpinejs-data alpinejs-directive alpinejs-plugin angular hacktoberfest javascript react svelte

Last synced: 7 days ago
JSON representation

Use a more familiar syntax when rendering Alpine JS `{variables}` 🚀

Awesome Lists containing this project

README

        

# Alpine JS Tash

Use a more familiar syntax when rendering Alpine JS `{variables}` 🚀

## Install

It's very easy to install Alpine JS plugins! 🙌

### With a CDN

```html

```

### With a Package Manager

```shell
npm i -D alpinejs-tash

yarn add -D alpinejs-tash
```

```js
import Alpine from 'alpinejs'
import tash from 'alpinejs-tash'

Alpine.plugin(tash)

window.Alpine = Alpine

Alpine.start()
```

## Example

### Plugin

```html



Hello, I am {name}! I am {age} years old and I currently work at {company}!



```

You don't have to use `{variable}` as your syntax.

If you prefer Vue syntax use `x-tash.vue` and you can write `{{ variable }}` 🐸

If you prefer Angular syntax use `x-tash.angular` and you can write
`{{variable}}` 🦞

By default it will use the `{variable}` syntax that React, Svelte, Solid,
Astro... And many others use.

_All variables you pass to `x-tash` use Alpine JS reactivity!_

### Stats

![](https://img.shields.io/bundlephobia/min/alpinejs-tash)
![](https://img.shields.io/npm/v/alpinejs-tash)
![](https://img.shields.io/npm/dt/alpinejs-tash)
![](https://img.shields.io/github/license/markmead/alpinejs-tash)