{"id":22725058,"url":"https://github.com/wapplersystems/ws_less","last_synced_at":"2025-04-13T19:07:26.325Z","repository":{"id":7417898,"uuid":"8751572","full_name":"WapplerSystems/ws_less","owner":"WapplerSystems","description":"less compiler extension for TYPO3","archived":false,"fork":false,"pushed_at":"2024-02-20T09:49:22.000Z","size":451,"stargazers_count":7,"open_issues_count":12,"forks_count":24,"subscribers_count":4,"default_branch":"release/v12","last_synced_at":"2024-05-01T11:42:35.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WapplerSystems.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}},"created_at":"2013-03-13T12:23:02.000Z","updated_at":"2022-07-18T16:19:33.000Z","dependencies_parsed_at":"2023-02-10T04:15:14.558Z","dependency_job_id":null,"html_url":"https://github.com/WapplerSystems/ws_less","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WapplerSystems%2Fws_less","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WapplerSystems%2Fws_less/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WapplerSystems%2Fws_less/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WapplerSystems%2Fws_less/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WapplerSystems","download_url":"https://codeload.github.com/WapplerSystems/ws_less/tar.gz/refs/heads/release/v12","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229082286,"owners_count":18017251,"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-12-10T15:08:44.036Z","updated_at":"2024-12-10T15:08:44.706Z","avatar_url":"https://github.com/WapplerSystems.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ext: ws_less\n\n\u003cimg src=\"https://github.com/joppnet/ws_less/blob/master/ext_icon.png\" width=\"32\" height=\"32\" /\u003e\n\nLicense: [GNU GPL, Version 2](https://www.gnu.org/licenses/gpl-2.0.html)\n\nRepository: https://github.com/svewap/ws_less\n\nPlease report bugs here: https://github.com/svewap/ws_less/issues\n\nTYPO3 version: \u003e8.7\n\n## About\n`ws_less` is a TYPO3 LESS compiler for compiling LESS files into CSS files. This extensions uses the `LessPHP` compiler.\n\nThe extension comes with a cache function. That means the LESS files will be compiled only if necessary.\n\nYou can pass values via TypoScript to the LESS files.\n\n## Usage\n\nTo include your LESS file, you can use the `page.includeCSS` TypoScript command as usual.\n\n```\npage.includeCSS {\n  bootstrap = fileadmin/bootstrap/less/bootstrap.less\n  bootstrap.outputdir = fileadmin/bootstrap/css/\n\n  responsive = fileadmin/bootstrap/less/responsive.less\n  responsive.outputdir = fileadmin/bootstrap/css/\n\n  rte = fileadmin/bootstrap/less/rte.less\n  rte.outputdir = fileadmin/rte/css/\n  rte.doNotHash = 1 # Disable file name hashing when using LESS variables via TypoScript\n}\n```\n\nYou can also leave off the `outputdir` parameter. The extension will be writing the CSS files into the `typo3temp/ws_less` directory.\n\n### Variables\n\nYou can set LESS variables in TypoScript in template setup part of your template:\n\n```\nplugin.tx_wsless.variables {\n  var1 = #000\n  var2 = #666\n}\n```\n\n#### Disable file name hashing\n\nFor including the generated CSS files in your `ckeditor` YAML config file it is recommended to use the `doNotHash = 1` parameter. When using LESS variables the generated file will be `fileadmin/rte/css/rte.css` instead of `fileadmin/rte/css/rte_468e20047a2589981edd540b083f26c4.css` so you can easily include it in your RTE YAML config using `\"contentsCss: \"fileadmin/rte/css/rte.css\"`\n\n### Development Notice\n\nFor developing it is suggested to force-render the template (switching off the TYPO3 template cache) using `admPanel.override.tsdebug.forceTemplateParsing = 1` in your backend user's UserTS config.\nThe LESS files will be compiled on each page load while being logged in as a backend user so you can see the result of your changes without repeatedly clearing the TYPO3 FE cache.\n\n## Credits\n\n- Sven Wappler ([TYPO3 Agentur Aachen](http://www.wapplersystems.de))\n- Jozef Spisiak (www.pixelant.net) for optimizing the extension","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwapplersystems%2Fws_less","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwapplersystems%2Fws_less","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwapplersystems%2Fws_less/lists"}