{"id":28075236,"url":"https://github.com/z3ntl3/recursive-parser","last_synced_at":"2025-05-13T00:55:33.131Z","repository":{"id":292481811,"uuid":"980527827","full_name":"Z3NTL3/recursive-parser","owner":"Z3NTL3","description":"Enhances Go's html/template by enabling recursive parsing of deeply nested view directories.","archived":false,"fork":false,"pushed_at":"2025-05-11T09:16:10.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:55:28.035Z","etag":null,"topics":["go","parse","parser","template","templates","templating"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Z3NTL3.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,"zenodo":null}},"created_at":"2025-05-09T09:22:23.000Z","updated_at":"2025-05-11T09:16:02.000Z","dependencies_parsed_at":"2025-05-10T08:42:03.344Z","dependency_job_id":null,"html_url":"https://github.com/Z3NTL3/recursive-parser","commit_stats":null,"previous_names":["z3ntl3/recursive-parser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Z3NTL3%2Frecursive-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Z3NTL3%2Frecursive-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Z3NTL3%2Frecursive-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Z3NTL3%2Frecursive-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Z3NTL3","download_url":"https://codeload.github.com/Z3NTL3/recursive-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850890,"owners_count":21973672,"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":["go","parse","parser","template","templates","templating"],"created_at":"2025-05-13T00:55:32.515Z","updated_at":"2025-05-13T00:55:33.112Z","avatar_url":"https://github.com/Z3NTL3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recursive-parser\n\nExtends [html/template](https://pkg.go.dev/html/template) by adding the ability to recursively parse dirs and files that are deeply nested within each other. In contrast to the default parsers: they cannot work with views nested in deep folder hierarchies.\n\n### Usage\n```go\n// provide your views folder\np := recursive_parser.New(path.Join(cwd, \"views\"))\n\n// name the root template\ntemp := template.New(\"views\")\n\n// walk recursively and use temp as root template to build upon\nif err := p.Walk(temp); err != nil {\n    t.Fatal(err)\n}\n\nvar out bytes.Buffer // where to write\n\n// execute `hello.html`, injecting it with data props and writing output to `out`\nif err := temp.ExecuteTemplate(\u0026out, \"hello.html\", map[string]string{\"title\": \"yolo\"}); err != nil {\n    t.Fatal(err)\n}\n\n// flush the output as string\nfmt.Printf(\"executed temp:\\n%s\\n\", out.String())\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz3ntl3%2Frecursive-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz3ntl3%2Frecursive-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz3ntl3%2Frecursive-parser/lists"}