{"id":18319666,"url":"https://github.com/joker/hpp","last_synced_at":"2025-04-05T22:31:33.592Z","repository":{"id":57479719,"uuid":"129098037","full_name":"Joker/hpp","owner":"Joker","description":"HTML Pretty Print for Go (golang)","archived":false,"fork":false,"pushed_at":"2020-10-21T12:29:30.000Z","size":8,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T12:59:19.610Z","etag":null,"topics":["formatter","golang","html","pretty-print"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Joker.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}},"created_at":"2018-04-11T13:27:56.000Z","updated_at":"2025-01-29T15:51:51.000Z","dependencies_parsed_at":"2022-09-26T17:41:29.764Z","dependency_job_id":null,"html_url":"https://github.com/Joker/hpp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joker%2Fhpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joker%2Fhpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joker%2Fhpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Joker%2Fhpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Joker","download_url":"https://codeload.github.com/Joker/hpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411236,"owners_count":20934650,"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":["formatter","golang","html","pretty-print"],"created_at":"2024-11-05T18:13:56.333Z","updated_at":"2025-04-05T22:31:33.379Z","avatar_url":"https://github.com/Joker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML Pretty Print for Go (golang)\nPackage hpp (github.com/Joker/hpp) is a HTML formatter for Go.\n\n\nexample:\n```html\n\u003c!DOCTYPE html\u003e\u003chtml lang=\"en\"\u003e\u003chead\u003e\u003ctitle\u003ePug\u003c/title\u003e\u003cscript type=\"text/javascript\"\u003eif (foo) {\n    bar(1 + 5)\n}\n\u003c/script\u003e\u003c/head\u003e\u003cbody\u003e\u003ch1\u003ePug - template engine\u003c/h1\u003e\u003cdiv id=\"container\" class=\"col\"\u003e\n\u003cp\u003eYou are amazing\u003c/p\u003e\u003cform\u003e\u003cbr\u003eFirst name:\u003cinput type=\"text\" name=\"firstname\"\u003e\u003cbr\u003eLast name:\n\u003cinput type=\"text\" name=\"lastname\"\u003e\u003c/form\u003e\u003cp\u003ePug is a terse and simple templating\nlanguage with a \u003cb\u003estrong\u003c/b\u003e focus on \nperformance and powerful features.\u003c/p\u003e\u003c/div\u003e\u003c/body\u003e\u003c/html\u003e\n```\nbecomes\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003ctitle\u003ePug\u003c/title\u003e\n        \u003cscript type=\"text/javascript\"\u003e\n            if (foo) {\n                bar(1 + 5)\n            }\n        \u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003ch1\u003ePug - template engine\u003c/h1\u003e\n        \u003cdiv id=\"container\" class=\"col\"\u003e\n            \u003cp\u003eYou are amazing\u003c/p\u003e\n            \u003cform\u003e\n                \u003cbr\u003eFirst name:\n                \u003cinput type=\"text\" name=\"firstname\"\u003e\n                \u003cbr\u003eLast name:\n                \u003cinput type=\"text\" name=\"lastname\"\u003e\n            \u003c/form\u003e\n            \u003cp\u003e\n                Pug is a terse and simple templating\n                language with a \u003cb\u003estrong\u003c/b\u003e focus on \n                performance and powerful features.\n            \u003c/p\u003e\n        \u003c/div\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\n### Installation\n\n```sh\n$ go get github.com/Joker/hpp\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoker%2Fhpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoker%2Fhpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoker%2Fhpp/lists"}