usualoma / mt-jsx-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:TypeScript 99.2%Language:JavaScript 0.8%