{"library":"spacebars-compiler","title":"Spacebars Compiler","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install spacebars-compiler"],"cli":{"name":"spacebars-compiler","version":null}},"imports":["import { compile } from 'spacebars-compiler'","import compile from 'spacebars-compiler'","const { compile } = require('spacebars-compiler')"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://atmospherejs.com/meteor/spacebars-compiler","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/spacebars-compiler","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import { compile } from 'spacebars-compiler';\nconst source = '{{#each items}}<li>{{name}}</li>{{/each}}';\nconst options = { isBody: true, useGlobalScope: false };\nconst output = compile(source, options);\nconsole.log(output);","lang":"typescript","description":"Compile a basic Spacebars template string into a JavaScript function string.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}