
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
eta_plugin_mixins
Advanced tools
Adds mixin support to the Eta template engine
A simple example
<% /* Define the mixin */ %>
<% let body = {@ %>
This is the template body
<% @} %>
<% /* Use the mixin */ %>
<%~ body() %>
Passing data to a mixin
<% let greeting = {@ %>
Hi <%= it.name %>
<% @} %>
<%= greeting({name: "Your Name"}) %>
import mixins from 'eta_plugin_mixins'
// Or, with Deno
import mixins from 'https://deno.land/x/eta_plugin_mixins/mod.ts'
eta.configure({
plugins: [mixins()]
})
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.
To be added
eta_plugin_mixins
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!
FAQs
Add mixins support to the Eta template engine
We found that eta_plugin_mixins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.