{"id":37114188,"url":"https://github.com/goat-framework/lamb","last_synced_at":"2026-01-14T13:26:43.559Z","repository":{"id":252038409,"uuid":"839124287","full_name":"goat-framework/lamb","owner":"goat-framework","description":"Go templating engine","archived":false,"fork":false,"pushed_at":"2024-08-11T01:39:32.000Z","size":35,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-11T22:34:17.791Z","etag":null,"topics":["framework","golang","package","template","template-engine"],"latest_commit_sha":null,"homepage":"","language":"Go","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/goat-framework.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":"2024-08-07T02:48:09.000Z","updated_at":"2024-08-11T01:39:35.000Z","dependencies_parsed_at":"2024-08-10T22:31:44.368Z","dependency_job_id":null,"html_url":"https://github.com/goat-framework/lamb","commit_stats":null,"previous_names":["goat-framework/lamb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goat-framework/lamb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goat-framework%2Flamb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goat-framework%2Flamb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goat-framework%2Flamb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goat-framework%2Flamb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goat-framework","download_url":"https://codeload.github.com/goat-framework/lamb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goat-framework%2Flamb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework","golang","package","template","template-engine"],"created_at":"2026-01-14T13:26:42.985Z","updated_at":"2026-01-14T13:26:43.547Z","avatar_url":"https://github.com/goat-framework.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\n[![Test](https://github.com/goat-framework/lamb/actions/workflows/go.yml/badge.svg)](https://github.com/goat-framework/lamb/actions)\n[![Report Card](https://goreportcard.com/badge/github.com/goat-framework/lamb)](https://goreportcard.com/report/github.com/goat-framework/lamb)\n![License](https://img.shields.io/github/license/goat-framework/lamb)\n\n\n\u003c/div\u003e\n\n# Lamb\n\nIntuitive templating engine for Go!\n\n## Directives\n\nThese new directives clean up your templates making them easy as pie to read!\n\n```\u003ch1\u003eTitle\u003c/h1\u003e\n@if LoggedIn\n\u003cp\u003eHello {{ User }}\u003c/p\u003e\n@else\n\u003ca href=\"login\"\u003eLogin\u003c/a\u003e\n@end\n```\n\nThese directives compile directly into the standard libary's syntax!\n\n```\u003ch1\u003eTitle\u003c/h1\u003e\n{{ if .LoggedIn }}\n\u003cp\u003eHello {{ .User }}\u003c/p\u003e\n{{ else }}\n\u003ca href=\"login\"\u003eLogin\u003c/a\u003e\n{{ end }}\n```\n\nEasier on the eyes right?\n\n## UI Components\n\nHaving troubles reusing components in your application?\nCheck out the ui components.\n\n_main.lamb.html_\n```\n\u003cform\u003e\n  \u003cui-input /\u003e\n  \u003cbutton\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\n_components/input.lamb.html_\n```\n\u003cinput type=\"text\" /\u003e\n```\n\n_compiled_\n```\n\u003cform\u003e\n  \u003cinput type=\"text\" /\u003e\n  \u003cbutton\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\n## Wrap UI Components\n\nNeed to wrap some content in a custom component?\n\n_main.lamb.html_\n```\n\u003cform\u003e\n  \u003cinput /\u003e\n  \u003cui-button\u003eSubmit\u003c/ui-button\u003e\n\u003c/form\u003e\n```\n\n_components/button.lamb.html_\n```\n\u003cbutton class=\"btn primary\"\u003e\u003cslot /\u003e\u003c/button\u003e\n```\n\n_compiled_\n```\n\u003cform\u003e\n  \u003cinput /\u003e\n  \u003cbutton class=\"btn primary\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\n## Create Themes With Ease\n\nLet's mix and match to create an awesome form!\n\n_main.lamb.html_\n```\n\u003cui-form\u003e\n  \u003cui-label\u003eEmail\u003cui-label\u003e\n  \u003cui-input /\u003e\n  \u003cui-label\u003eName\u003cui-label\u003e\n  \u003cui-input /\u003e\n  \u003cui-button\u003eSubmit\u003c/ui-button\u003e\n\u003c/ui-form\u003e\n```\n\n_components/form.lamb.html_\n```\n\u003cform class=\"flex flex-col space-y-4\"\u003e\n  \u003cslot /\u003e\n\u003c/form\u003e\n```\n\n_components/label.lamb.html_\n```\n\u003clabel class=\"text-gray-800 font-bold\"\u003e\u003cslot /\u003e\u003c/label\u003e\n```\n\n_components/input.lamb.html_\n```\n\u003cinput type=\"text\" class=\"rounded-md border-blue-500\" /\u003e\n```\n\n_components/button.lamb.html_\n```\n\u003cbutton class=\"bg-blue-500 rounded-lg text-white\"\u003e\n  \u003cslot /\u003e\n\u003c/button\u003e\n```\n\n_compiled_\n```\n\u003cform class=\"flex flex-col space-y-4\"\u003e\n  \u003clabel class=\"text-gray-800 font-bold\"\u003eEmail\u003c/label\u003e\n  \u003cinput type=\"text\" class=\"rounded-md border-blue-500\" /\u003e\n  \u003clabel class=\"text-gray-800 font-bold\"\u003eName\u003c/label\u003e\n  \u003cinput type=\"text\" class=\"rounded-md border-blue-500\" /\u003e\n  \u003cbutton class=\"bg-blue-500 rounded-lg text-white\"\u003eSubmit\u003c/button\u003e\n\u003c/form\u003e\n```\n\n## Pass Attributes Down To Components\n\nMy labels and inputs need special attributes for each component!\n\nHere's how to implement that.\n\n_main.lamb.html_\n```\n\u003cui-label for=\"email\"\u003eEmail\u003c/ui-label\u003e\n\u003cui-input id=\"email\" /\u003e\n```\n\n_label.lamb.html_\n```\n\u003clabel @attributes(\"class\": \"text-gray-800 font-bold\")\u003e\u003cslot /\u003e\u003c/label\u003e\n```\n\n_input.lamb.html_\n```\n\u003cinput @attributes(\"type\": \"text\", \"class\": \"rounded-md border-blue-500\") /\u003e\n```\n\n_compiled_\n```\n\u003clabel for=\"email\" class=\"text-gray-800 font-bold\"\u003eEmail\u003c/label\u003e\n\u003cinput id=\"email\" type=\"text\" class=\"rounded-md border-blue-500\" /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoat-framework%2Flamb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoat-framework%2Flamb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoat-framework%2Flamb/lists"}