You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2021. It is now read-only.
⚠️ SassyJSON was an experimental project. It is not meant to be used in production. If you need to transit JSON data from and to your Sass layer, have a look into Eyeglass and Sassport.
SassyJSON is a Sass-powered API for JSON. It provides you the classic json-encode and json-decode directly from your Sass files. We'll leave you the only judges of the point of this.
git clone https://github.com/KittyGiraudel/SassyJSON.git && cd SassyJSON
npm
npm install sassyjson --save-dev
Compass extension
gem install SassyJSON
Add require 'SassyJSON' to your config.rb
Import it in your stylesheets with @import 'SassyJSON'
Sass
If you only want to play around the code without cloning the repo or using npm, you can find a single file containing the whole API in the dist folder.
If you want to restrict the output to only one of the three drivers (comment, media query or regular output) you can pass a flag as the second parameter with one of the four following keywords: all, comment, media or regular. Default is all.