Discover Packages
github.com/aziis98/textml
runtime
transpile
package
Version:
v0.0.0-...-de5ff62
Opens a new window with list of versions in this module.
Published: Jun 21, 2023
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
TextML / Transpile
Usage
textml transpile
is used for reading *.tml
files and translating it to other common formats. For now you must pass a file and use one of the following command line options
--format
, -f
: Set a format, available formats are
go
: Uses https://github.com/alecthomas/repr/ to show the parsed tree structure
json
: Converts the parsed document to JSON
inline-json
: As previous but inlined
transpile.html
: A simple semantic to convert #html.ELEMENT { ... }
to the corresponding HTML element. This will get a major write pretty soon.
--output
, -o
: Set output file or "-
" for stdout.
Expand ▾
Collapse ▴
Documentation
¶
type Html struct {
Inline bool
}
type Json struct{ Inline bool }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.