{"id":18447620,"url":"https://github.com/superfly-css/superfly-css-task-test","last_synced_at":"2025-04-15T06:46:32.783Z","repository":{"id":57374741,"uuid":"44583565","full_name":"superfly-css/superfly-css-task-test","owner":"superfly-css","description":"Test task","archived":false,"fork":false,"pushed_at":"2017-03-13T20:19:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T06:46:28.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/superfly-css.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-20T05:11:48.000Z","updated_at":"2017-01-23T14:29:22.000Z","dependencies_parsed_at":"2022-08-29T21:01:39.272Z","dependency_job_id":null,"html_url":"https://github.com/superfly-css/superfly-css-task-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfly-css%2Fsuperfly-css-task-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfly-css%2Fsuperfly-css-task-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfly-css%2Fsuperfly-css-task-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfly-css%2Fsuperfly-css-task-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superfly-css","download_url":"https://codeload.github.com/superfly-css/superfly-css-task-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023707,"owners_count":21199958,"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-11-06T07:13:56.731Z","updated_at":"2025-04-15T06:46:32.767Z","avatar_url":"https://github.com/superfly-css.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# superfly-css-task-test\n\nThe [superfly-css-task-test](https://github.com/superfly-css/superfly-css-task-test):\n- Supports nunjucks templating\n- Highlights content contained in `Test-markup`\n- Generates a corresponding `Test-render` block that displays the markup contained in the `Test-markup` block\n\n## Usage\n\nClone the package:\n``` console\ngit clone https://github.com/superfly-css/superfly-css-task-test\n```\n\nMove to the root of the package\n``` console\ncd supefly-css-task-test\n```\n\nBuild the test `src/test/html/index.html` by running:\n``` console\ngulp test:css\n```\nThe prebuilt contents are shown below.  Once `src/test/html/index.html` is built the markup contained in `Test-markup` will be highlighted, and a corresponding `Test-render` block will be generated after the `Test-then` block. \n\n```html\n  \u003cdiv class=\"Test\"\u003e\n    \u003ch3 class=\"Test-when\"\u003eWhen the \u003ccode\u003e.Grid\u003c/code\u003e container holds 2 \u003ccode\u003e.Grid-cell\u003c/code\u003e instances:\u003c/h3\u003e\n    \u003c!--Markup contained by the code block is escaped and highlighted by gulp-highlight--\u003e\n    \u003cpre class=\"Test-markup\"\u003e\n      \u003ccode class=\"html\"\u003e\n        \u003cdiv class=\"Grid\"\u003e\n            \u003c!-- Use Nunjucks to keep markup DRY --\u003e\n            {% for cell in ['1', '2'] %}\n                \u003cdiv class=\"Grid-cell\"\u003e{{cell}}/2\u003c/div\u003e\n            {% endfor %}\n         \u003c/div\u003e\n      \u003c/code\u003e\n    \u003c/pre\u003e\n    \u003ch3 id=\"then\" class=\"Test-then\"\u003eEach grid cell occupies the same amount of space witin the grid container row.\u003c/h3\u003e\n  \u003c/div\u003e\n```\nPost build the test file looks like this:\n\n```html\n...\n  \u003cdiv class=\"Test\"\u003e\n    \u003ch3 class=\"Test-when\"\u003eWhen the \u003ccode class=\"hljs\"\u003e\u003cspan class=\"hljs-title\"\u003e.Grid\u003c/span\u003e\u003c/code\u003e container holds 2 \u003ccode class=\"hljs\"\u003e\u003cspan class=\"hljs-title\"\u003e.Grid-cell\u003c/span\u003e\u003c/code\u003e instances:\u003c/h3\u003e\n    \u003c!--Markup contained by the code block is escaped and highlighted by gulp-highlight--\u003e\n    \u003cpre class=\"Test-markup\"\u003e\n      \u003ccode class=\"html hljs\"\u003e\n\u0026lt;\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e \u003cspan class=\"hljs-built_in\"\u003eclass\u003c/span\u003e=\u003cspan class=\"hljs-string\"\u003e\"Grid\"\u003c/span\u003e\u0026gt;\n    \n        \u0026lt;\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e \u003cspan class=\"hljs-built_in\"\u003eclass\u003c/span\u003e=\u003cspan class=\"hljs-string\"\u003e\"Grid-cell\"\u003c/span\u003e\u0026gt;\u003cspan class=\"hljs-number\"\u003e1\u003c/span\u003e/\u003cspan class=\"hljs-number\"\u003e2\u003c/span\u003e\u0026lt;/\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e\u0026gt;\n    \n        \u0026lt;\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e \u003cspan class=\"hljs-built_in\"\u003eclass\u003c/span\u003e=\u003cspan class=\"hljs-string\"\u003e\"Grid-cell\"\u003c/span\u003e\u0026gt;\u003cspan class=\"hljs-number\"\u003e2\u003c/span\u003e/\u003cspan class=\"hljs-number\"\u003e2\u003c/span\u003e\u0026lt;/\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e\u0026gt;\n    \n \u0026lt;/\u003cspan class=\"hljs-keyword\"\u003ediv\u003c/span\u003e\u0026gt;\n      \u003c/code\u003e\n    \u003c/pre\u003e\n    \u003ch3 id=\"then\" class=\"Test-then\"\u003eEach grid cell occupies the same amount of space.\u003c/h3\u003e\n    \u003cdiv class=\"Test-render\"\u003e\n        \u003cdiv class=\"Grid\"\u003e\n            \n                \u003cdiv class=\"Grid-cell\"\u003e1/2\u003c/div\u003e\n            \n                \u003cdiv class=\"Grid-cell\"\u003e2/2\u003c/div\u003e\n            \n         \u003c/div\u003e\n      \u003c/div\u003e\n  \u003c/div\u003e\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfly-css%2Fsuperfly-css-task-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperfly-css%2Fsuperfly-css-task-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfly-css%2Fsuperfly-css-task-test/lists"}