{"id":21570345,"url":"https://github.com/chowa/cwhtml","last_synced_at":"2026-05-18T09:37:16.725Z","repository":{"id":109200173,"uuid":"237750897","full_name":"chowa/cwhtml","owner":"chowa","description":"Small front-end engineering modular development scaffolding","archived":false,"fork":false,"pushed_at":"2020-03-07T04:44:46.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T11:52:24.117Z","etag":null,"topics":["frontend","inline-source","layout","minifier","module","sass","scaffolding","sprite","template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/chowa.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":"2020-02-02T10:00:33.000Z","updated_at":"2020-03-07T04:44:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"716676f7-fc83-4989-b421-bd6f8ab59a29","html_url":"https://github.com/chowa/cwhtml","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"dc88cae5aacf982e60228a049a4d131a03cc2959"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chowa/cwhtml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chowa%2Fcwhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chowa%2Fcwhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chowa%2Fcwhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chowa%2Fcwhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chowa","download_url":"https://codeload.github.com/chowa/cwhtml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chowa%2Fcwhtml/sbom","scorecard":{"id":278907,"data":{"date":"2025-08-11","repo":{"name":"github.com/chowa/cwhtml","commit":"dc88cae5aacf982e60228a049a4d131a03cc2959"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T15:13:10.645Z","repository_id":109200173,"created_at":"2025-08-17T15:13:10.645Z","updated_at":"2025-08-17T15:13:10.645Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["frontend","inline-source","layout","minifier","module","sass","scaffolding","sprite","template"],"created_at":"2024-11-24T11:12:22.222Z","updated_at":"2026-05-18T09:37:16.707Z","avatar_url":"https://github.com/chowa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"http://upload.ouliu.net/i/20200210221643sqi62.png\" width=\"240\"\u003e\n\u003c/p\u003e\n\n# cwhtml\n\nSmall front-end engineering modular development scaffolding\n\n[![Build Status](https://travis-ci.org/chowa/cwhtml.svg?branch=master)](https://travis-ci.org/chowa/cwhtml)\n[![npm](https://img.shields.io/npm/v/cwhtml.svg)](https://www.npmjs.com/package/cwhtml)\n[![npm](https://img.shields.io/npm/dm/cwhtml.svg)](https://www.npmjs.com/package/cwhtml)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://opensource.org/licenses/MIT)\n\n## Install\n\n```\nnpm i cwhtml -g\n```\n\n## Usage\n\n### create project\n\n```\ncwhtml create \u003cdir\u003e\n```\n\n### build\n\n```\ncwhtml build\n```\n\n### development\n\n```\ncwhtml dev\n```\n\n## Congifure\n\n### File\n\n`.cwhtmlrc`\n\n### Options\n\n\n## Directory rules\n\n```\ncwhtml-project\n|\n|-- dist\n|\n|-- src\n|   |-- component\n|   |   |-- header /* auto import style and js */\n|   |   |   |-- index.tpl\n|   |   |   |-- index.scss\n|   |   |   |-- index.js\n|   |\n|   |-- data /* page render data */\n|   |   |-- index.js\n|   |\n|   |-- image\n|   |   |-- banner.png\n|   |\n|   |-- sprite\n|   |   |-- index\n|   |   |   |-- icon.png\n|   |\n|   |-- layout\n|   |   |-- common.tpl\n|   |\n|   |-- page /* entry */\n|   |   |-- index.tpl\n|   |   \n|   |-- script\n|   |   |-- index.js\n|   |\n|   |-- style\n|   |   |-- index.scss /* free choice css sass less */\n|   |\n|   |-- iconfont\n|   |   |-- font.eot\n|   |   |-- font.woff\n|   |   |-- font.woff2\n|   |   |-- font.svg\n|   |\n|   |-- favicon.ico\n```\n\n## Synatx\n\n### Template inheritance\n\n```\n{{extend './layout.tpl'}}\n```\n\n### Sub template\n\n***auto include `src/component/header/*`***\n\n```\n{{include header}}\n```\n\n### Block inheritance\n\n```\n{{block content}}\n    \u003ch1\u003esub conetnt\u003c/h1\u003e\n{{/block}}\n```\n\n### Loop\n\nKey and item are keywords\n\n```\n{{each from=data}}\n    \u003cli data-key=\"{{key}}\"\u003e {{item.name}}\u003c/li\u003e\n{{/each}}\n```\n\n### Condition\n\n\u003e does not support boolean\n\n```\n{{if a=1}}\n    \u003ch1\u003etrue\u003c/h1\u003e\n#{{else}}\n    \u003ch2\u003efalse\u003c/h2\u003e\n{{/if}}\n\n{{if c=case}}\n    \u003ch1\u003ecase\u003c/h1\u003e\n{{elseif c=which}}\n    \u003ch2\u003ewhich\u003c/h2\u003e\n{{/if}}\n```\n\n### Variable\n\n```\n{{set a=1}}\n\n{{a}}\n```\n\n### Import style\n\n\u003e support css sass less\n\n```\n{{style '../style/index.scss'}}\n````\n\n### Import javascript\n\n```\n{{script '../js/index.js'}}\n````\n\n## Options\n\n```js\n    root: './src',\n    output: './dist'\n    extname: '.tpl'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchowa%2Fcwhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchowa%2Fcwhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchowa%2Fcwhtml/lists"}