Arguments
This commit is contained in:
+25
@@ -18,6 +18,31 @@ TypoML reads from stdin and outputs HTML to stdout:
|
||||
cat input.tlm | ./TypoML > output.html
|
||||
```
|
||||
|
||||
It can also read one or more (added in the order of command line arguments) `.tlm` files:
|
||||
|
||||
```
|
||||
./TypoML input.tlm > output.html
|
||||
```
|
||||
|
||||
Run `./TypoML --help` for the full list of options.
|
||||
|
||||
!! Options
|
||||
|
||||
- `--title <text>` - Set the HTML document `<title>` (default: `TypoML`)
|
||||
- `--plain` - Don't wrap the output in `<html>`, `<head>`, `<body>` and `<style>` tags
|
||||
- `--no-js` - Don't include the JavaScript variable proxy
|
||||
- `--no-wrapper` - Shortcut for `--plain` and `--no-js` at once
|
||||
- `--print-tree` - Print the token tree instead of HTML
|
||||
- `-h`, `--help` - Show the help text and exit
|
||||
|
||||
Examples:
|
||||
|
||||
```
|
||||
./TypoML doc.tlm --title "TITLE" > doc.html
|
||||
./TypoML doc.tlm --no-wrapper > fragment.html
|
||||
./TypoML doc.tlm --print-tree
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
!! Syntax
|
||||
|
||||
Reference in New Issue
Block a user