{"id":21040740,"url":"https://github.com/l-briand/tagtemplate","last_synced_at":"2026-01-11T17:58:22.035Z","repository":{"id":39654029,"uuid":"484193302","full_name":"L-Briand/TagTemplate","owner":"L-Briand","description":"A named {{ tag  }} template processor in kotlin.","archived":false,"fork":false,"pushed_at":"2024-02-06T11:26:53.000Z","size":231,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T21:23:01.027Z","etag":null,"topics":["kotlin","kotlin-multiplatform","kotlin-multiplatform-library","template-engine-html","template-engine-kotlin","template-engines","template-processor","templates"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/L-Briand.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":"2022-04-21T20:19:46.000Z","updated_at":"2024-03-31T14:25:45.000Z","dependencies_parsed_at":"2024-11-19T14:02:55.655Z","dependency_job_id":null,"html_url":"https://github.com/L-Briand/TagTemplate","commit_stats":null,"previous_names":["l-briand/tagtemplate","l-briand/tt"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/L-Briand/TagTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Briand%2FTagTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Briand%2FTagTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Briand%2FTagTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Briand%2FTagTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/L-Briand","download_url":"https://codeload.github.com/L-Briand/TagTemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/L-Briand%2FTagTemplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269502567,"owners_count":24427790,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["kotlin","kotlin-multiplatform","kotlin-multiplatform-library","template-engine-html","template-engine-kotlin","template-engines","template-processor","templates"],"created_at":"2024-11-19T13:47:49.636Z","updated_at":"2025-10-25T06:34:54.621Z","avatar_url":"https://github.com/L-Briand.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TT `{{ tag }} template`\n\nA quick and easy to use library for those, who only want named {{ tag }} replacement in a string.\n\nFor a more advanced template processor, please look at my mustache templating\nengine [L-Briand/KTM](https://github.com/L-Briand/KTM).\n\nDefault rendering:\n\n```kotlin\nval render = TT(\"Hello {{ name }}!\", \"name\" to \"John\")\nassert(\"Hello John!\" == render)\n\nval data = mapOf(\"name\" to \"John\", \"ag e\" to 33)\nassert(\"John, 33 y/o\" == TT(\"{{ name }}, {{ ag e }} y/o\", data))\n\ndata class User(val name: String)\nassert(\"User(name=John)\" == TT(\"{{ class }}\", \"class\" to User(\"John\")))\n```\n\nCustom delimiters:\n\n```kotlin\nval format = TT(start = \"%%\", stop = \"%\")\nval render = format(\"Hello %% name %!\", \"name\" to \"John\")\nassert(\"Hello John!\" == render)\n```\n\nEscape HTML:\n\n```kotlin\nval format = TT(HtmlEscape)\nval render = format(\"{{ script }}\", \"script\" to \"\u003cscript\u003ealert('Hello')\u003c/script\u003e\")\nassert(\"\u0026lt;script\u0026gt;alert(\u0026#x27;Hello\u0026#x27;)\u0026lt;/script\u0026gt;\", render)\n```\n\n## Import from maven\n\n### Multiplatform\n\n```kotlin\nrepositories {\n    mavenCentral()\n}\nval commonMain by getting {\n    dependencies {\n        implementation(\"net.orandja.kt:TT:1.0.0\")\n    }\n}\n```\n\n### Jvm\n\n```kotlin\nrepositories {\n    mavenCentral()\n}\ndependencies {\n    implementation(\"net.orandja.kt:TT:1.0.0\")\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-briand%2Ftagtemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl-briand%2Ftagtemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-briand%2Ftagtemplate/lists"}