Trim.js
Trim is an HTML preprocessor that provides the power necessary to build front-end and full-stack applications effectively and efficiently. With syntax and functionality similar to react, trim allows you to create reusable components. Trim is highly compatible with Alpine.js, which makes it possible to create functional components.
Installation
npm i trim -g
Usage
The syntax of Trim.js is very similar to JSX. Below is a list of add-ons;
- Rule tags - {@Rule ...}
- Js Expressions(substitute for react expression containers) - {{...}}
- AEC(Alpine expression container) - {...}
- Scriptlet tag - <{...}>