{"id":15056435,"url":"https://github.com/eyedouble/erlsass","last_synced_at":"2025-05-16T12:31:57.317Z","repository":{"id":57496697,"uuid":"127420583","full_name":"eyedouble/erlsass","owner":"eyedouble","description":"Compile Sass/Scss implemented as Erlang NIF using libsass.","archived":false,"fork":false,"pushed_at":"2018-07-17T17:51:24.000Z","size":1544,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T09:06:07.229Z","etag":null,"topics":["c","erlang","library","nif","sass","scss"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/eyedouble.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":"2018-03-30T11:28:56.000Z","updated_at":"2018-07-17T17:51:25.000Z","dependencies_parsed_at":"2022-08-28T20:20:29.321Z","dependency_job_id":null,"html_url":"https://github.com/eyedouble/erlsass","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedouble%2Ferlsass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedouble%2Ferlsass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedouble%2Ferlsass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eyedouble%2Ferlsass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eyedouble","download_url":"https://codeload.github.com/eyedouble/erlsass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254530278,"owners_count":22086581,"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":["c","erlang","library","nif","sass","scss"],"created_at":"2024-09-24T21:51:24.788Z","updated_at":"2025-05-16T12:31:52.295Z","avatar_url":"https://github.com/eyedouble.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# erlsass\nCompile Sass/Scss implemented as Erlang NIF using **libsass 3.5.1**.\n\n## Known to work on:\n- Ubuntu 17.10\n- Ubuntu 16.04\n- Fedora 27\n- Windows 10 x64 (Compile via MinGW gcc) *See usage on Windows section below*\n\n## Prerequisites\n- gcc\n- g++\n\n*Please note that that Windows is only supported with Erlang/OTP 21.0 and higher. Since this release the folder containing the nif's dll is automatically added to the dll search path (OTP-14666). Erlsass uses this functionality to load it's depencency. Should you require Erlsass on Windows with a Erlang version lower than 21 feel free to use release 1.1.0.*\n\n*Please note on fedora and possibly other linux distro's that use yum as package manger the g++ compiler is called gcc-c++*\n\n## Install\nSimply add `erlsass` to the `rebar.config` file of your application and add to your `application.src` file.\n\n## API\n### compile/2\n#### Compile a file and return result as string\nDefault compilation style is compressed see compile/4 for options.\n```erlang\n  erlsass:compile ( file, \"foo/bar/style.scss\" ).\n  \u003e\u003e {ok, \"body{color:#000;}\"}\n```\n### compile/3\n#### Compile a file and return result as string and specify comilation style\nStyle options:\n\n- Compact\n- Compressed\n- Expanded\n- Nested\n\n```erlang\n  erlsass:compile ( file, \"foo/bar/style.scss\", \"compressed\" ).\n  \u003e\u003e {ok, \"body{color:#000;}\"}\n````\n### compile_write/3 \u0026 compile_write/4\n#### Compile a file and write result to a file\n```erlang\n  erlsass:compile_write ( file, \"foo/bar/style.scss\", \"foo/bar/style.css\", \"compressed\" ).\n  \u003e\u003e ok  \n  erlsass:compile_write ( file, \"foo/bar/style.scss\", \"foo/bar/style.css\").\n  \u003e\u003e ok  \n```\n### version/0\n#### Retrieve version info\n```erlang\n  erlsass:version().\n  \u003e\u003e {ok, \"Erlsass:x.x.x;Libsass:x.x.x\"} \n```\n\n## Usage on Windows \nTo build erlsass on Windows 64bit you need to provide GNU gcc and g++ compilers.\nFollow the steps below:\n\n1. Download  [MinGW64 for Windows 64bit](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download) , and unzip to `C:\\mingw64`.\n\n2. Add `C:\\mingw64\\bin` to your Path environment variable. ( On Windows 10: Open the Start menu, type `environment` in the results click on `Edit environment variables for your account`. Select the `Path` entry and click on `Edit`. )\n\n3. Open CMD or Powershell and execute `gcc --version`. It should show you the gcc version that is present. Do the same for g++. You are now done, please see the section **Install** to continue.\n\n4. Note that the latest version of Erlsass on Windows is only compatible with Erlang/OTP 21 or higher.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyedouble%2Ferlsass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feyedouble%2Ferlsass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feyedouble%2Ferlsass/lists"}