qutem (quick template engine) is a simple template engine to perform one functionality: replacing placeholders with file contents.
Suppose you have index.html with the following content
<html>
<head>
</head>
//(...)
and a header.html file with the following content
<title>This is the title from header.html</title>
You want to insert the contents of the header.html file to index.html file.
You modify the index.html thusly:
<html>
<head>
{{!header.html}}
</head>
//(...)
and run
qutem index.html
Now you have a new file dist/index.html with the following content
<html>
<head>
<title>This is the title from header.html</title>
</head>
//(...)
Please note that the contents of the dist directory is removed completely when running qutem, so that the dist directory contains only the new file.
I could not find a simple template engine running in a terminal allowing me to replace placeholders with file contents, so I decided to create my own.
Standard dart project structure created with pub, see https://dart.dev/tools/pub/package-layout
Dart is installed. See https://dart.dev/get-dart
You can contribute to this project in many ways:
- submitting an issue (bug or enhancement proposal)
- testing
- contributing code
If you want to contribute code, please open an issue or contact me beforehand to ensure that your work in line with the project goals.
When you decide to commit some code:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.