[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5047":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},5047,"templ","a-h\u002Ftempl","a-h","A language for writing HTML user interfaces in Go.","https:\u002F\u002Ftempl.guide\u002F",null,"Go",10341,359,40,22,0,12,50,9,42.67,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33],"go","html-elements","htmx","ide-support","language-server","lsp","server-side-rendering","templating-languages","2026-06-12 02:01:07","![templ](https:\u002F\u002Fgithub.com\u002Fa-h\u002Ftempl\u002Fraw\u002Fmain\u002Ftempl.png)\n\n## An HTML templating language for Go that has great developer tooling.\n\n![templ](ide-demo.gif)\n\n\n## Documentation\n\nSee user documentation at https:\u002F\u002Ftempl.guide\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fa-h\u002Ftempl\">\u003Cimg src=\"https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fa-h\u002Ftempl.svg\" alt=\"Go Reference\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fxcfile.dev\">\u003Cimg src=\"https:\u002F\u002Fxcfile.dev\u002Fbadge.svg\" alt=\"xc compatible\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fraw.githack.com\u002Fwiki\u002Fa-h\u002Ftempl\u002Fcoverage.html\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fa-h\u002Ftempl\u002Fwiki\u002Fcoverage.svg\" alt=\"Go Coverage\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fa-h\u002Ftempl\">\u003Cimg src=\"https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fa-h\u002Ftempl\" alt=\"Go Report Card\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n## Tasks\n\n### version-set\n\nSet the version of templ to the current version.\n\n```sh\nversion set --template=\"0.3.%d\"\n```\n\n### build\n\nBuild a local version.\n\n```sh\nversion set --template=\"0.3.%d\"\ncd cmd\u002Ftempl\ngo build\n```\n\n### install-snapshot\n\nBuild and install current version.\n\n```sh\n# Remove templ from the non-standard ~\u002Fbin\u002Ftempl path\n# that this command previously used.\nrm -f ~\u002Fbin\u002Ftempl\n# Clear LSP logs.\nrm -f cmd\u002Ftempl\u002Flspcmd\u002F*.txt\n# Update version.\nversion set --template=\"0.3.%d\"\n# Install to $GOPATH\u002Fbin or $HOME\u002Fgo\u002Fbin\ncd cmd\u002Ftempl && go install\n```\n\n### build-snapshot\n\nUse goreleaser to build the command line binary using goreleaser.\n\n```sh\ngoreleaser build --snapshot --clean\n```\n\n### generate\n\nRun templ generate using local version.\n\n```sh\ngo run .\u002Fcmd\u002Ftempl generate -include-version=false\n```\n\n### test\n\nRun Go tests.\n\n```sh\nversion set --template=\"0.3.%d\"\ngo run .\u002Fcmd\u002Ftempl generate -include-version=false\ngo test .\u002F...\n```\n\n### test-short\n\nRun Go tests.\n\n```sh\nversion set --template=\"0.3.%d\"\ngo run .\u002Fcmd\u002Ftempl generate -include-version=false\ngo test .\u002F... -short\n```\n\n### test-cover\n\nRun Go tests.\n\n```sh\n# Create test profile directories.\nmkdir -p coverage\u002Ffmt\nmkdir -p coverage\u002Fgenerate\nmkdir -p coverage\u002Fversion\nmkdir -p coverage\u002Funit\n# Build the test binary.\ngo build -cover -o .\u002Fcoverage\u002Ftempl-cover .\u002Fcmd\u002Ftempl\n# Run the covered generate command.\nGOCOVERDIR=coverage\u002Ffmt .\u002Fcoverage\u002Ftempl-cover fmt .\nGOCOVERDIR=coverage\u002Fgenerate .\u002Fcoverage\u002Ftempl-cover generate -include-version=false\nGOCOVERDIR=coverage\u002Fversion .\u002Fcoverage\u002Ftempl-cover version\n# Run the unit tests.\ngo test -cover .\u002F... -coverpkg .\u002F... -args -test.gocoverdir=\"$PWD\u002Fcoverage\u002Funit\"\n# Display the combined percentage.\ngo tool covdata percent -i=.\u002Fcoverage\u002Ffmt,.\u002Fcoverage\u002Fgenerate,.\u002Fcoverage\u002Fversion,.\u002Fcoverage\u002Funit\n# Generate a text coverage profile for tooling to use.\ngo tool covdata textfmt -i=.\u002Fcoverage\u002Ffmt,.\u002Fcoverage\u002Fgenerate,.\u002Fcoverage\u002Fversion,.\u002Fcoverage\u002Funit -o coverage.out\n# Print total\ngo tool cover -func coverage.out | grep total\n```\n\n### test-cover-watch\n\ninteractive: true\n\n```sh\ngotestsum --watch -- -coverprofile=coverage.out\n```\n\n### test-fuzz\n\n```sh\n.\u002Fparser\u002Fv2\u002Ffuzz.sh\n.\u002Fparser\u002Fv2\u002Fgoexpression\u002Ffuzz.sh\n```\n\n### benchmark\n\nRun benchmarks.\n\n```sh\ngo run .\u002Fcmd\u002Ftempl generate -include-version=false && go test .\u002F... -bench=. -benchmem\n```\n\n### fmt\n\nFormat all Go and templ code.\n\n```sh\ngofmt -s -w .\ngo run .\u002Fcmd\u002Ftempl fmt .\n```\n\n### lint\n\nRun the lint operations that are run as part of the CI.\n\n```sh\ngolangci-lint run --verbose\n```\n\n### ensure-generated\n\nEnsure that templ files have been generated with the local version of templ, and that those files have been added to git.\n\nRequires: generate\n\n```sh\ngit diff --exit-code\n```\n\n### push-release-tag\n\nPush a semantic version number to GitHub to trigger the release process.\n\n```sh\nversion push --template=\"0.3.%d\" --prefix=\"v\"\n```\n\n### docs-run\n\nRun the development server.\n\nDirectory: docs\n\n```sh\nnpm run start\n```\n\n### docs-build\n\nBuild production docs site.\n\nDirectory: docs\n\n```sh\nnpm run build\n```\n\n","templ 是一个用于在 Go 语言中编写 HTML 用户界面的语言。它提供了强大的开发工具支持，包括 IDE 支持、语言服务器协议（LSP）和服务器端渲染等功能。项目利用了 Go 的高效性能和简洁语法来简化前端开发流程，使得开发者能够更加专注于业务逻辑的实现。非常适合需要在 Go 应用程序中直接生成 HTML 内容或构建复杂 Web 界面的场景使用。此外，由于其良好的测试覆盖率和活跃的社区支持，对于追求高质量代码输出的团队来说是一个不错的选择。",2,"2026-06-11 03:02:14","top_language"]