{"id":32501318,"url":"https://github.com/deek87/html-webpack-c5-theme-plugin","last_synced_at":"2026-05-07T09:34:02.478Z","repository":{"id":51398716,"uuid":"265192919","full_name":"deek87/html-webpack-c5-theme-plugin","owner":"deek87","description":"Concrete5 Theme Plugin for html-webpack-plugin to generate concrete5 theme files.","archived":false,"fork":false,"pushed_at":"2023-03-14T17:44:31.000Z","size":287,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-26T22:46:04.428Z","etag":null,"topics":["concrete5","concrete5-theme","html-webpack-plugin-plugin","php","theme","theme-development","webpack","webpack-plugin"],"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/deek87.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":"2020-05-19T08:42:00.000Z","updated_at":"2021-10-26T11:12:32.000Z","dependencies_parsed_at":"2023-01-20T06:55:12.087Z","dependency_job_id":null,"html_url":"https://github.com/deek87/html-webpack-c5-theme-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deek87/html-webpack-c5-theme-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deek87%2Fhtml-webpack-c5-theme-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deek87%2Fhtml-webpack-c5-theme-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deek87%2Fhtml-webpack-c5-theme-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deek87%2Fhtml-webpack-c5-theme-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deek87","download_url":"https://codeload.github.com/deek87/html-webpack-c5-theme-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deek87%2Fhtml-webpack-c5-theme-plugin/sbom","scorecard":{"id":331753,"data":{"date":"2025-08-11","repo":{"name":"github.com/deek87/html-webpack-c5-theme-plugin","commit":"16563421a819eb3230b593ca355a49d17e051930"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/deek87/html-webpack-c5-theme-plugin/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/deek87/html-webpack-c5-theme-plugin/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/deek87/html-webpack-c5-theme-plugin/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/deek87/html-webpack-c5-theme-plugin/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:28","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:25","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:48:26.702Z","repository_id":51398716,"created_at":"2025-08-18T03:48:26.702Z","updated_at":"2025-08-18T03:48:26.702Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["concrete5","concrete5-theme","html-webpack-plugin-plugin","php","theme","theme-development","webpack","webpack-plugin"],"created_at":"2025-10-27T16:49:08.336Z","updated_at":"2026-05-07T09:34:02.474Z","avatar_url":"https://github.com/deek87.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Html-Webpack-C5-Theme-Plugin\n\n![Tests](https://github.com/deek87/html-webpack-c5-theme-plugin/workflows/Tests/badge.svg?branch=master) ![Build](https://github.com/deek87/html-webpack-c5-theme-plugin/workflows/Build/badge.svg?branch=master)\n\n## Installation\n\nTo install first run\n\n```\nnpm install -D html-webpack-plugin webpack\nnpm install -D html-webpack-c5-theme-plugin\n```\n\nthen inside your webpack.config.js file\n\n```js\nconst { HtmlWebpackC5ThemePlugin } = require(\"html-webpack-c5-theme-plugin\");\n// or use const HtmlWebpackC5ThemePlugin = require(\"html-webpack-c5-theme-plugin\").default;\nconst HtmlWebpackPlugin = require(\"html-webpack-plugin\");\nmodule.exports ={\n    ...\n    plugins : [\n        new HtmlWebpackPlugin(),\n        new HtmlWebpackC5ThemePlugin(pluginOptions, HtmlWebpackPlugin)\n    ]\n    ...\n}\n```\n\n`pluginOptions` can be either a string representing a theme name or a configuration object\n`HtmlWebpackPlugin` does not need to be passed but sometimes when dealing with multiple installations of the html-webpack-plugin, assets may not be correctly passed\n\n## Configuration\n\nConfiguration options for this plugin are as follows\n\n```js\nconst c5Options = {\n  packageHandle: null, // set to null unless you want to add theme to a package.\n  themeHandle: \"c5_theme\", // The theme handle of the theme. This will be used in page_theme.php for namespacing.\n  themeName: \"Concrete5 Theme\", // The theme name of the outputted files. This will be will be used in page_theme.php.\n  themeDescription: \"A nice description\", // Enter a description about the theme. This will be used in page_theme.php.\n  skipIndex: false, // Set to true if you dont want to process index.html as a php file. Useful if your index.html is just links.\n  defaultPage: \"index.html\", // This is the page that will be used for generating default.php.\n  deleteHtml: false, // This will delete html files after generating php.\n};\n```\n\n## Defining an area\n\nTo define a concrete 5 area in your files\njust put the following html tag\n\n```html\n\u003cc5-area name=\"C5 area\"\u003e\u003c/c5-area\u003e\n```\n\n### Make an area global\n\n```html\n\u003cc5-area name=\"C5 area\" global=\"true\"\u003e\u003c/c5-area\u003e\n```\n\n### Disable Editing Controls\n\n```html\n\u003cc5-area name=\"C5 area\" editable=\"false\"\u003e\u003c/c5-area\u003e\n```\n\n## Defining an element\n\nTo define an element area just use html5 comment tags like this replace `Element Name` with what you want the element to be called\n\n```html\n\u003cdiv class=\"container\"\u003e\n  \u003c!--C5 Begin Element Name--\u003e\n  \u003cdiv class=\"sm-12 md-10\"\u003e\n    \u003cc5-area name=\"Main\"\u003e\u003c/c5-area\u003e\n  \u003c/div\u003e\n  \u003c!--C5 End Element Name--\u003e\n\u003c/div\u003e\n```\n\nThis will be placed into a file under 'theme_name/elements/element_name.php'\n\nThe element file would contain the following\n\n```php\n\u003c?php\ndefined('C5_EXECUTE') or die('Access Denied.');\n/* @var \\Concrete\\Core\\Page\\View\\PageView $view */\n$c = \\Concrete\\Core\\Page\\Page::getCurrentPage();?\u003e\n\u003cdiv class=\"sm-12 md-10\"\u003e\n        \u003c?php\n        $area = new \\Concrete\\Area\\Area('Main');\n        $area-\u003edisplay($c);\n        ?\u003e\n    \u003c/div\u003e\n```\n\nThe main html file will be outputted like this\n\n```php\n...\n\u003cdiv class=\"container\"\u003e\n    \u003c?php $view-\u003einc('elements/element_name');?\u003e\n\u003c/div\u003e\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeek87%2Fhtml-webpack-c5-theme-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeek87%2Fhtml-webpack-c5-theme-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeek87%2Fhtml-webpack-c5-theme-plugin/lists"}