https://github.com/gcarreno/fp-tera-tpl
Port of the Tera template engine to Free Pascal
https://github.com/gcarreno/fp-tera-tpl
fpc free-pascal freepascal object-pascal objectpascal template-engine template-tera templates tera-templates
Last synced: 4 months ago
JSON representation
Port of the Tera template engine to Free Pascal
- Host: GitHub
- URL: https://github.com/gcarreno/fp-tera-tpl
- Owner: gcarreno
- License: mit
- Created: 2025-07-31T01:03:34.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-07-31T14:25:14.000Z (10 months ago)
- Last Synced: 2025-07-31T18:06:38.900Z (10 months ago)
- Topics: fpc, free-pascal, freepascal, object-pascal, objectpascal, template-engine, template-tera, templates, tera-templates
- Language: Pascal
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tera Templates
[](https://github.com/gcarreno/fp-tera-tpl/releases/latest)
[](https://github.com/gcarreno/fp-tera-tpl/releases/latest)
[](https://github.com/gcarreno/fp-tera-tpl/releases/latest)
[](https://github.com/gcarreno/fp-tera-tpl/blob/main/LICENSE)
[](https://github.com/gcarreno/fp-tera-tpl/releases/latest)
[](https://github.com/gcarreno/fp-tera-tpl/releases)
This package is an attempt to port the famous Tera template engine into Free Pascal.
## Objectives
- [x] Implement full `AST` on the engine.
- [x] Implement `{{ }}`.
- [x] Implement filters: `{{ | | }}`.
- [x] Implement `{% include "" %}`.
- [x] Implement `{% if %}`, `{% else %}` and `{% endif %}`.
- [x] Implement decent expression parser for `{% if %}` with `AST`.
- [x] Implement `{% for in %}` and `{% enfor %}`.
- [ ] Implement full battery of tests.
- [ ] Implement `{%-` and `-%}` for `TrimLeft` and `TrimRight`.
## Examples
There are examples: [Examples Folder](examples)
## Package
You can find the package here: [Packages Folder](packages)