Spacebars Compiler compiles Spacebars templates (Handlebars-based syntax used in Meteor) into JavaScript modules compatible with Node.js and browser bundlers. Currently at version 1.6.0. It provides both CLI and programmatic usage for transforming templates into renderable JS functions. Key differentiator: it targets Meteor's Spacebars dialect, not general Handlebars, and supports i18n. Release cadence appears low as the author eface2face maintains it sporadically. Use when migrating Meteor templates to standalone Node/browser apps.
npm install spacebars-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile a basic Spacebars template string into a JavaScript function string.
Ensure your templates are Meteor Spacebars templates; use a different compiler for Handlebars.
Check file permissions and use --dir to specify an existing directory.
Add declare module 'spacebars-compiler' or install community typings.
Run 'npm install spacebars-compiler' and ensure it's in your dependencies.
Use const { compile } = require('spacebars-compiler');Validate template strictly against Spacebars grammar.
No dependency data recorded yet.