https://github.com/b4rtaz/t3mpl-core
Static site generator in browser or nodejs.
https://github.com/b4rtaz/t3mpl-core
blog-engine markdown nodejs static-site-generator t3mpl
Last synced: 9 months ago
JSON representation
Static site generator in browser or nodejs.
- Host: GitHub
- URL: https://github.com/b4rtaz/t3mpl-core
- Owner: b4rtaz
- License: mit
- Created: 2020-09-10T12:16:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-03T18:31:47.000Z (over 4 years ago)
- Last Synced: 2025-01-12T21:33:30.775Z (over 1 year ago)
- Topics: blog-engine, markdown, nodejs, static-site-generator, t3mpl
- Language: TypeScript
- Homepage: https://t3mpl.n4no.com/
- Size: 376 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# T3MPL Core
[](https://app.travis-ci.com/b4rtaz/t3mpl-core) [](https://coveralls.io/github/b4rtaz/t3mpl-core?branch=master) [](/LICENSE) [](https://twitter.com/b4rtaz)
T3MPL is the core library of [T3MPL Editor](https://github.com/b4rtaz/t3mpl-editor). This project contains the template YAML parser and the template generator. The generator can be used in the browser or by command line (by Nodejs).
This project contains [the template example](examples/boilerplate-template) and [the data example](examples/boilerplate-data).
## ⚙️ How to Build
[Node.js](https://nodejs.org/en/) is required.
```
npm install
npm run build
```
## ✨ CLI
You can use T3MPL from CLI. To install globally enter bellow commands. Node.js is required.
```
npm install -g t3mpl-core
t3mpl version
```
### Build
To build a template, the generator needs the template manifest path and the data. You can pass the path to the own data by `--data=PATH` argument or generate an example data by `--exampleData=true` argument.
##### Own Data
```t3mpl build --manifest=examples/boilerplate-template/template.yaml --data=examples/boilerplate-data/data.json --outDir=build/```
##### Example Data
```t3mpl build --manifest=examples/boilerplate-template/template.yaml --exampleData=true --outDir=build/```
## 💡 License
This project is released under the MIT license.