mt-jsx-template
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

mt-jsx-template

This is a library and command line tool that allows you to write MTML (Movable Type Markup Language) in TSX.

Usage

Transpile .mtml.tsx to .mtml

$ npx mt-jsx-template source.mtml.tsx > template.mtml

Transpile multiple files in a directory

$ npx mt-jsx-template source --outdir template

Import MT Tag types

$ npm install --save-dev mt-jsx-template

And tsconfig.json

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "mt-jsx-template",
  }
}

Then you can refer to the MT tag type as follows.

Screenshot

Readme

Keywords

none

Package Sidebar

Install

npm i mt-jsx-template

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

2.81 MB

Total Files

34

Last publish

Collaborators

  • usualoma