{"id":13531641,"url":"https://github.com/markmead/alpinejs-tash","last_synced_at":"2025-04-07T07:04:24.741Z","repository":{"id":41997902,"uuid":"435222511","full_name":"markmead/alpinejs-tash","owner":"markmead","description":"Use a more familiar syntax when rendering Alpine JS {variables} 🚀","archived":false,"fork":false,"pushed_at":"2025-03-07T10:55:45.000Z","size":35,"stargazers_count":104,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T06:01:36.968Z","etag":null,"topics":["alpine","alpinejs","templating"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markmead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-05T16:41:36.000Z","updated_at":"2025-03-18T17:23:35.000Z","dependencies_parsed_at":"2025-03-07T09:21:45.872Z","dependency_job_id":"1c395fee-3bc6-4d35-88fe-7b90cf6c02b2","html_url":"https://github.com/markmead/alpinejs-tash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-tash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-tash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-tash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmead%2Falpinejs-tash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmead","download_url":"https://codeload.github.com/markmead/alpinejs-tash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608150,"owners_count":20965952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","alpinejs","templating"],"created_at":"2024-08-01T07:01:04.560Z","updated_at":"2025-04-07T07:04:24.711Z","avatar_url":"https://github.com/markmead.png","language":"JavaScript","funding_links":[],"categories":["Extensions \u0026 Plugins"],"sub_categories":[],"readme":"# Alpine JS Tash\n\n![](https://img.shields.io/bundlephobia/min/alpinejs-tash)\n![](https://img.shields.io/npm/v/alpinejs-tash)\n![](https://img.shields.io/npm/dt/alpinejs-tash)\n![](https://img.shields.io/github/license/markmead/alpinejs-tash)\n\nUse a more familiar syntax when rendering Alpine JS `{variables}` 🚀\n\nAlpine JS Tash (Template Hash) lets you use templating syntax from popular\nframeworks to render Alpine JS data. Instead of writing `x-text` expressions,\nsimply use curly braces like React, Vue, or Angular in your markup.\n\n## Features\n\n- 💪 Framework-familiar syntax (`{variable}`, `{{ variable }}`, etc.)\n- 🔄 Fully reactive with Alpine JS data\n- 🎨 Multiple template styles (React/Svelte, Vue, Angular)\n- 🪶 Lightweight addition to your Alpine JS projects\n- 🧩 Simple plugin integration\n\n## Why Use Tash?\n\nTash makes Alpine JS templates more readable and familiar, especially if you're\ncoming from other frameworks. It simplifies string interpolation without\nsacrificing Alpine JS reactivity system.\n\n## Install\n\n### CDN\n\n```html\n\u003cscript\n  defer\n  src=\"https://unpkg.com/alpinejs-tash@latest/dist/cdn.min.js\"\n\u003e\u003c/script\u003e\n\n\u003cscript defer src=\"https://unpkg.com/alpinejs@latest/dist/cdn.min.js\"\u003e\u003c/script\u003e\n```\n\n### Package\n\n```shell\nyarn add -D alpinejs-tash\nnpm install -D alpinejs-tash\n```\n\n```js\nimport Alpine from 'alpinejs'\nimport tash from 'alpinejs-tash'\n\nAlpine.plugin(tash)\n\nwindow.Alpine = Alpine\n\nAlpine.start()\n```\n\n## Example\n\n```html\n\u003cdiv\n  x-data=\"{ name: 'Walter White', age: 50, company: 'Gray Matter Technologies' }\"\n\u003e\n  \u003cp x-tash=\"name, age, company\"\u003e\n    Hello, I am {name}! I am {age} years old and I currently work at {company}!\n  \u003c/p\u003e\n\n  \u003c!-- Hello, I am Walter White! I am 50 years old and I currently work at Gray Matter Technologies! --\u003e\n\u003c/div\u003e\n```\n\n## Options\n\n## Template Syntax Options\n\nAlpine JS Tash supports different template syntax styles to match your\npreference:\n\n### Default: React/Svelte Style\n\n```html\n\u003cdiv x-data=\"{ name: 'John' }\"\u003e\n  \u003cp x-tash=\"name\"\u003eHello, {name}!\u003c/p\u003e\n\u003c/div\u003e\n```\n\n### Vue Style\n\n```html\n\u003cdiv x-data=\"{ name: 'John' }\"\u003e\n  \u003cp x-tash.vue=\"name\"\u003eHello, {{ name }}!\u003c/p\u003e\n\u003c/div\u003e\n```\n\n### Angular Style\n\n```html\n\u003cdiv x-data=\"{ name: 'John' }\"\u003e\n  \u003cp x-tash.angular=\"name\"\u003eHello, {{name}}!\u003c/p\u003e\n\u003c/div\u003e\n```\n\nChoose the syntax that feels most comfortable based on your background or\nproject requirements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmead%2Falpinejs-tash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmead%2Falpinejs-tash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmead%2Falpinejs-tash/lists"}