{"id":17680341,"url":"https://github.com/docelic/html2slang","last_synced_at":"2025-07-27T12:42:49.072Z","repository":{"id":66956509,"uuid":"118320652","full_name":"docelic/html2slang","owner":"docelic","description":"Converts HTML pages to slang (templating language)","archived":false,"fork":false,"pushed_at":"2018-01-21T12:59:38.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-21T23:34:18.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","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/docelic.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":"2018-01-21T09:19:22.000Z","updated_at":"2018-11-30T13:21:39.000Z","dependencies_parsed_at":"2023-02-21T06:15:57.546Z","dependency_job_id":null,"html_url":"https://github.com/docelic/html2slang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/docelic/html2slang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docelic%2Fhtml2slang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docelic%2Fhtml2slang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docelic%2Fhtml2slang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docelic%2Fhtml2slang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docelic","download_url":"https://codeload.github.com/docelic/html2slang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docelic%2Fhtml2slang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211684,"owners_count":23125543,"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":[],"created_at":"2024-10-24T09:06:39.733Z","updated_at":"2025-06-21T23:35:19.885Z","avatar_url":"https://github.com/docelic.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2slang\nConverts HTML pages to [slang](https://github.com/jeromegn/slang) (templating language).\n\nDoes it work? Yes.\n\nPrimary use case is converting HTML templates into much nicer and more efficient slang syntax, so that the development can be done in slang from there.\n\nIt might not cover absolutely all edge cases, but does pretty well and should get you in a good position.\n(Currently the only outstanding issue is that it does not preserve whitespace in preformatted blocks of text, and simply treats everything as HTML.)\n\nVarious methods of running it:\n\n```shell\n  perl html2slang.pl file1.html file2.html\n\n  cat file1.html | perl html2slang.pl\n\n  perl html2slang.pl \u003c file1.html\n```\n\nOutput is always printed to STDOUT. Redirect to where desired from there.\n\nFor example, to convert all *.html files in a directory and save the\nunder the same name with extension \".slang\":\n\n```bash\nfor p in *.html; do perl html2slang.pl \"$p\" \u003e \"${p/.html/.slang}\"; done\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocelic%2Fhtml2slang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocelic%2Fhtml2slang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocelic%2Fhtml2slang/lists"}