0.0.3 • Published 1 year ago
mt-jsx-template v0.0.3
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.