Remixml is an XML/HTML-like macro language and template compiler engine for JavaScript, currently at v7.0.11. It compiles templates directly into minified JavaScript with zero runtime dependencies, supports auto-escaping, asynchronous control, user-defined tags, filters, and whitespace preservation. Unlike many templating engines, Remixml uses XML entities (e.g., &scope.varname;) instead of artificial delimiters, integrates smoothly with existing XHTML/HTML syntax highlighting, and includes a validating XHTML parser. It runs in Node.js (ES2018+) and modern browsers, with a runtime size under 7 KB gzipped.
npm install remixmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic Remixml usage: parsing a template with variable substitution and a loop.
Use &scope.varname; syntax for all template variables.
Use <for list="&var.items;"> where items is an array. For objects, use RXML library or custom tag.
Use <set> and <for> loops to access array elements or pass them as data properties.
Use import Remixml from 'remixml' and call Remixml.parse2txt() directly; do not instantiate.
Use <autoescape>on</autoescape> or apply filters to variables: &escape.htmlescape(var.foo);
Use static methods: import Remixml from 'remixml'; Remixml.parse2txt(...);
Ensure data object has the scope as a nested object: { _: { sitename: 'value' } }Add </for> or self-close the tag if using a different form.
No dependency data recorded yet.