Skip to content

A rust program that uses my swc fork to parse GJS

License

Notifications You must be signed in to change notification settings

patricklx/content-tag

 
 

Repository files navigation

content-tag

content-tag is a preprocessor for JS files that are using the content-tag proposal. This originated with Ember.js' GJS and GTS functionality. You can read more by checking out the original RFC

This preprocessor can be used to transform files using the content-tag spec to standard JS. It is built on top of swc using Rust and is deployed as a wasm package.

Installation

npm install content-tag

Usage

let { Preprocessor } = require('content-tag');
let p = new Preprocessor();
let output = p.process('<template>Hi</template>');
console.log(output);

Contributing

See the CONTRIBUTING.md file.

About

A rust program that uses my swc fork to parse GJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 85.3%
  • JavaScript 14.7%