{"id":14990611,"url":"https://github.com/lucadb/twig_static_scaffolding","last_synced_at":"2026-01-04T21:41:55.385Z","repository":{"id":242051429,"uuid":"124085380","full_name":"LucaDb/twig_static_scaffolding","owner":"LucaDb","description":"Boilerplate for static site/frontend generator using twig.js, scoped css (cssmodules) and live code injection (HTML/CSS).","archived":false,"fork":false,"pushed_at":"2018-03-06T18:39:40.000Z","size":91,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-26T18:44:19.883Z","etag":null,"topics":["browsersync","cssmodules","twig"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucaDb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-06T13:52:38.000Z","updated_at":"2020-09-29T16:37:31.000Z","dependencies_parsed_at":"2024-05-31T11:30:19.178Z","dependency_job_id":"846e469b-f4a9-4090-a83b-1b0a056b179c","html_url":"https://github.com/LucaDb/twig_static_scaffolding","commit_stats":null,"previous_names":["lucadb/twig_static_scaffolding"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaDb%2Ftwig_static_scaffolding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaDb%2Ftwig_static_scaffolding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaDb%2Ftwig_static_scaffolding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucaDb%2Ftwig_static_scaffolding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucaDb","download_url":"https://codeload.github.com/LucaDb/twig_static_scaffolding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244888449,"owners_count":20526798,"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":["browsersync","cssmodules","twig"],"created_at":"2024-09-24T14:20:27.278Z","updated_at":"2026-01-04T21:41:55.353Z","avatar_url":"https://github.com/LucaDb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## TL;DR\n\n 1. clone the repo\n 2. install/update [nvm](https://github.com/creationix/nvm) then type `nvm use` to setup node version\n 3. `npm i`\n 4. `npm run dev`\n 5. create components `npm run component -- [component_name]`\n\n## Using scoped CSS\nWhen you run for example `npm run component -- header` the script creates a folder in `src/html/components` like this:\n\n```\n|-- src\n  |-- html\n    |-- components\n      |-- header\n        |-- header.twig\n        |-- style.scss\n```\n\nIn `style.scss` file you can write scoped css, for example:\n \n```\n.header { \n    height: 200px;\n    background: #fafafa;\n}\n```\n\nAnd in `header.twig` you can reference the class name like this:\n\n    \u003cheader class=\"{{style('header')}}\"\u003e\n    ...\n    \u003c/header\u003e\n\nThis compiles in:\n\n    \u003cheader class=\"header__header___3EXwe\"\u003e\n    ...\n    \u003c/header\u003e\n\nFor all css modules api please refer to [css modules repo](https://github.com/css-modules/css-modules).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadb%2Ftwig_static_scaffolding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucadb%2Ftwig_static_scaffolding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucadb%2Ftwig_static_scaffolding/lists"}