
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
fragments-js
Advanced tools
Fragments is an ultra-fast templating and data-binding library for front-end JavaScript applications.
Fragments.js is a fast templating and data-binding library for front-end JavaScript applications. It relies on the simplicity and speed of document fragments to create templates, clone new views from them, and manage pools of views for reuse increasing runtime speed.
When Fragments.js turns a string or existing HTML element into a template, it walks that template's DOM and initializes
bindings that keep the DOM in sync with a data source which can be bound and unbound to the template. These bindings are
defined with binders, or code that gets called when a binding is found in the template. A binder can match on attribute
name (the most common) and element name. For example, if you define an attribute binder for autoselect
that binder's
code will run against any element with an attribute of autoselect
, with which you might do something like
automatically select the text inside an input when it is focused.
Binders provide all sorts of possibilities to be bound more easily in the markup. In the simplest case they can be used to set attributes or add listeners to elements in the DOM. But they can be made to do much more. They are like Angular's directives, but much simpler to create and use. They are like jQuery's plugins, but attached directly to an element in its markup. You can create custom binders for your application to:
FAQs
Fragments is an ultra-fast templating and data-binding library for front-end JavaScript applications.
The npm package fragments-js receives a total of 38 weekly downloads. As such, fragments-js popularity was classified as not popular.
We found that fragments-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.