{"id":19412375,"url":"https://github.com/almas-ali/fasttemp","last_synced_at":"2025-02-25T02:42:29.131Z","repository":{"id":213800272,"uuid":"734960695","full_name":"Almas-Ali/FastTemp","owner":"Almas-Ali","description":"FastTemp is a simple, fast, and lightweight template engine for Python.","archived":false,"fork":false,"pushed_at":"2023-12-23T07:04:11.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T15:28:37.955Z","etag":null,"topics":["html-template-engine","html-templating","python-template-engine","template-engine"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Almas-Ali.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-12-23T06:52:53.000Z","updated_at":"2023-12-31T16:46:11.000Z","dependencies_parsed_at":"2023-12-23T07:46:28.782Z","dependency_job_id":null,"html_url":"https://github.com/Almas-Ali/FastTemp","commit_stats":null,"previous_names":["almas-ali/fasttemp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2FFastTemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2FFastTemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2FFastTemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Almas-Ali%2FFastTemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Almas-Ali","download_url":"https://codeload.github.com/Almas-Ali/FastTemp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240593165,"owners_count":19825929,"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":["html-template-engine","html-templating","python-template-engine","template-engine"],"created_at":"2024-11-10T12:26:22.195Z","updated_at":"2025-02-25T02:42:28.992Z","avatar_url":"https://github.com/Almas-Ali.png","language":"Python","readme":"\u003ch1 align=\"center\"\u003e FastTemp - A HTML Template Engine \u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/Almas-Ali/FastTemp/\"\u003e\u003cimg src=\"https://img.shields.io/github/license/Almas-Ali/FastTemp?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://wakatime.com/badge/user/168edf9f-71dc-49cc-bf77-592d9c9d4eed/project/018c8c58-0154-4fe7-8a63-02c545cc1fa2\"\u003e\u003cimg src=\"https://wakatime.com/badge/user/168edf9f-71dc-49cc-bf77-592d9c9d4eed/project/018c8c58-0154-4fe7-8a63-02c545cc1fa2.svg\" alt=\"wakatime\"\u003e\u003c/a\u003e\n\u003ca href=\"https://hits.seeyoufarm.com\"\u003e\u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAlmas-Ali%2FFastTemp\u0026count_bg=%2352B308\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eFastTemp is a simple, fast, and lightweight template engine for Python. It is still in development, and not ready for production use.\n\u003c/p\u003e\n\n## The Principles of FastTemp\n\nFastTemp is designed to be fast and easy to use. It has a rich syntax and supports many features. It's syntax highly inspired by [blade](https://laravel.com/docs/10.x/blade#main-content) from [Laravel](https://laravel.com/). We use the similar syntax to blade, but different in some ways. We are not trying to copy blade, but we are trying to make a template engine with a similar syntax to blade which is easy to use and fast. We are also trying to make it as lightweight as possible. \n\n## Features\n\n- [x] Variables\n    | Syntax | Description |\n    | --- | --- |\n    | `@set(variable, value)` | Set a variable |\n    | `{variable}` | Print the variable |\n    | `{% variable %}` | Print the variable with HTML escaped |\n\n- [x] Comments\n    | Syntax | Description |\n    | --- | --- |\n    | `@comment ... @endcomment` | Comment block |\n\n- [x] Control Structures\n    | Syntax | Description |\n    | --- | --- |\n    | `@if(condition) ... @endif` | If statement |\n    | `@if(condition) ... @else ... @endif` | If-else statement |\n    | `@unless ... @endunless` | Unless statement |\n- [ ] Loops\n  | Syntax | Description |\n  | --- | --- |\n  | `@for ... @endfor` | For loop |\n  | `@foreach ... @endforeach` | For-each loop |\n  | `@while ... @endwhile` | While loop |\n\n- [ ] Includes\n  | Syntax | Description |\n  | --- | --- |\n  | `@include ...` | Include a template |\n\n- [ ] Layouts\n  | Syntax | Description |\n  | --- | --- |\n  | `@extends ...` | Extend a template |\n  | `@section ... @endsection` | Define a section |\n  | `@yield ...` | Yield a section |\n  | `@parent` | Yield the parent section |\n\n- [ ] Built-in Directives\n- [ ] Built-in Functions\n- [ ] Built-in Filters\n- [ ] Built-in Tags\n\n- [ ] Custom Directives\n- [ ] Custom Functions\n- [ ] Custom Filters\n- [ ] Custom Tags\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmas-ali%2Ffasttemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmas-ali%2Ffasttemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmas-ali%2Ffasttemp/lists"}