{"id":18074923,"url":"https://github.com/danieleteti/templatepro","last_synced_at":"2026-01-30T00:46:18.864Z","repository":{"id":82496768,"uuid":"106263022","full_name":"danieleteti/templatepro","owner":"danieleteti","description":"TemplatePro is a powerful and extendable template language for Delphi","archived":false,"fork":false,"pushed_at":"2025-03-20T20:11:33.000Z","size":570,"stargazers_count":32,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-20T20:57:03.859Z","etag":null,"topics":["delphi","dmvcframework","htmx-template","template"],"latest_commit_sha":null,"homepage":"https://www.patreon.com/delphimvcframework","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danieleteti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-09T09:25:47.000Z","updated_at":"2025-03-20T20:11:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"23f7af72-6697-4186-a870-4aa2d1076b7b","html_url":"https://github.com/danieleteti/templatepro","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleteti%2Ftemplatepro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleteti%2Ftemplatepro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleteti%2Ftemplatepro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieleteti%2Ftemplatepro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieleteti","download_url":"https://codeload.github.com/danieleteti/templatepro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247385704,"owners_count":20930600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delphi","dmvcframework","htmx-template","template"],"created_at":"2024-10-31T10:23:53.056Z","updated_at":"2026-01-30T00:46:18.859Z","avatar_url":"https://github.com/danieleteti.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TemplatePro - Template Engine for Delphi\n\n![TemplatePro Logo](https://github.com/danieleteti/templatepro/blob/master/templatepro_logo.png)\n\n**TemplatePro** is a modern template engine for Delphi and Object Pascal, inspired by Jinja2, Twig, and Smarty. If you're looking for a Jinja-like or Mustache-like template engine for Delphi, TemplatePro is the solution.\n\n[![Version](https://img.shields.io/badge/version-1.1-blue.svg)](https://github.com/danieleteti/templatepro)\n[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](LICENSE)\n[![Delphi](https://img.shields.io/badge/Delphi-10%20Seattle+-orange.svg)](https://www.embarcadero.com/products/delphi)\n\n## What is TemplatePro?\n\nTemplatePro is a template engine library for Embarcadero Delphi and RAD Studio. It allows you to separate presentation logic from business logic by using template files with a clean, readable syntax.\n\n**Use it for:**\n- HTML page generation\n- Email templates (HTML and plain text)\n- Report generation\n- Code generation\n- Any text-based output\n\n**Supported Delphi versions:** 10 Seattle and later (VCL and FireMonkey).\n\n## Features\n\n- Variables, loops, conditionals\n- Filters (built-in and custom)\n- Macros for reusable fragments\n- Inline expressions\n- Template inheritance (multi-level)\n- TDataSet support\n- Compiled templates for performance\n\n## Quick Start\n\n```pascal\nvar lCompiler := TTProCompiler.Create;\ntry\n  var lTemplate := lCompiler.Compile(\n    '\u003ch1\u003e{{:title}}\u003c/h1\u003e\u003cp\u003eHello {{:username}}!\u003c/p\u003e');\n  lTemplate.SetData('title', 'Welcome');\n  lTemplate.SetData('username', 'Daniele');\n  ShowMessage(lTemplate.Render);\n  // Output: \u003ch1\u003eWelcome\u003c/h1\u003e\u003cp\u003eHello Daniele!\u003c/p\u003e\nfinally\n  lCompiler.Free;\nend;\n```\n\n## Documentation\n\nFor complete documentation, examples, and tutorials:\n\n**[https://www.danieleteti.it/templatepro/](https://www.danieleteti.it/templatepro/)**\n\n## License\n\nApache License 2.0 - See [LICENSE](LICENSE) file.\n\n## Author\n\n**Daniele Teti** - [danieleteti.it](https://www.danieleteti.it)\n\n---\n\n*Keywords: Delphi template engine, Object Pascal templates, Delphi HTML generator, Delphi email templates, RAD Studio template engine*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieleteti%2Ftemplatepro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieleteti%2Ftemplatepro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieleteti%2Ftemplatepro/lists"}