bracel is an HTML transpiler that lets you write HTML using a syntax similar to JavaScript function scopes and expressions. Paired tags are written as function-like scopes (tag { content }), and unpaired tags end with a semicolon. It supports arguments, escaping characters, and escaping blocks. Version 0.0.7 is the latest stable release, though the package is very early-stage and not actively maintained. It differentiates itself from template languages like Pug by offering a more JS-centric syntax. The package can be used via CLI or programmatically, and has a roadmap questioning community interest.
npm install bracelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a string of bracel syntax to HTML using the default export, then write to file.
Consider using stable alternatives like Pug or Handlebars for production. Pin to specific version if using.
Update CLI usage: bracel --input <file> --output <file>
Use import or dynamic import. Do not rely on require().
Use colon before opening brace: tag :{ ... }Ensure all paired tags have matching braces and unpaired tags end with semicolons. Use the online playground to debug.
Remove stray semicolons or ensure unpaired tags are correctly formed with tag name and arguments before semicolon.
Install locally: npm install bracel. If using CommonJS, use dynamic import: const bracel = await import('bracel');Change require to import or use dynamic import: import bracel from 'bracel'; or const bracel = (await import('bracel')).default;Ensure input is a non-empty string containing valid bracel syntax. Check for leading/trailing whitespace.
No dependency data recorded yet.