Skip to content

Ecto ✨ makes your HTML more interactive by allowing you to declare variables πŸ“Œ, iterate over arrays πŸ”„, and conditionally render elements ⚑ without complex JavaScript logic! πŸš€ It's fast ⚑, easy to use πŸ’‘, and seamlessly integrates with any project 🎯!

Notifications You must be signed in to change notification settings

HaSh3003/Ecto_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Ecto Library πŸš€

Ecto is a lightweight JavaScript library that provides dynamic variable binding and condition-based rendering without requiring users to write JavaScript! 🎯

πŸ“Œ Features

  • Dynamic Variables: Use <x-var> to declare global variables.
  • Looping: Use <x-loop> to iterate over arrays.
  • Conditional Rendering: Use if="{{variable}} == 'value'" to show/hide elements.
  • Component System: Load external HTML components easily.

πŸ“₯ Installation

You can include Ecto in your project using jsDelivr CDN:

<script src="https://cdn.jsdelivr.net/gh/HaSh3003/Ecto_Library/ecto.min.js"></script>

πŸš€ Usage

1️⃣ Define a Variable

<x-var name="userName" value="John Doe"></x-var>

2️⃣ Use Loops

<x-loop repeat="10">
  <x-click action="alert('hmed')">btn</x-click>
</x-loop>

3️⃣ Conditional Rendering

<x-var name="role" value="admin"></x-var>
<div if="{{role}} == 'admin'">Welcome, Admin! πŸ‘‘</div>

4️⃣ Using Components

<x-component src="header.html"></x-component>

πŸ’‘ Contributing

Want to improve Ecto Library? Feel free to fork, submit issues, or contribute! πŸŽ‰

πŸ“œ License

This project is open-source and available under the MIT License.


⭐ Star the repo if you like it! ⭐

About

Ecto ✨ makes your HTML more interactive by allowing you to declare variables πŸ“Œ, iterate over arrays πŸ”„, and conditionally render elements ⚑ without complex JavaScript logic! πŸš€ It's fast ⚑, easy to use πŸ’‘, and seamlessly integrates with any project 🎯!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published