eta_plugin_mixins
Adds mixin support to the Eta template engine
🌟 Examples
A simple example
<% /* Define the mixin */ %> <% let body = @ %>This is the template body<% @ %> <% /* Use the mixin */ %><%~ %>
Passing data to a mixin
<% let greeting = @ %>Hi <%= itname %><% @ %> <%= %>
📜 Usage
// Or, with Deno eta
✔️ Tests
Tests can be run with npm test
. Multiple tests check that parsing, rendering, and compiling return expected results, formatting follows guidelines, and code coverage is at the expected level.
Resources
To be added
eta_plugin_mixins
Projects using
Contributors
Made with ❤ by @nebrelbug and all these wonderful contributors (emoji key):
Ben Gubler 💻 💬 📖 ⚠️ |
This project follows the all-contributors specification. Contributions of any kind are welcome!