Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #33 from PrisisForks/master
Browse files Browse the repository at this point in the history
Release v2.1.0
  • Loading branch information
prisis committed Aug 25, 2015
2 parents a9cefa7 + df0cf6d commit d7d276d
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.10",
"version": "2.1.0",
"homepage": "http://growcss.com/",
"authors": [
"Daniel Bannert <d.bannert@anolilab.de>"
Expand Down
12 changes: 12 additions & 0 deletions dist/_config-manager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
$config: config-set($key, $value, $default);
}

// Gets a value to/from a configuration path
//
// @function config-get
//
// @param $key {string} The configuration path
// @param $default {bool} Whether the configuration is default
//
// @return {*} The value of the configuration path
@mixin config-get($key, $default: false) {
$config: config-get($key, $default);
}

// Remove settings
//
// @mixin config-reset
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "growcss-sass-config-manager",
"version": "2.0.10",
"version": "2.1.0",
"description": "A dot-syntax configuration (Map) library for Sass (mixin / function).",
"author": {
"name": "Daniel Bannert",
Expand Down
12 changes: 12 additions & 0 deletions src/scss/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
$config: config-set($key, $value, $default);
}

// Gets a value to/from a configuration path
//
// @function config-get
//
// @param $key {string} The configuration path
// @param $default {bool} Whether the configuration is default
//
// @return {*} The value of the configuration path
@mixin config-get($key, $default: false) {
$config: config-get($key, $default);
}

// Remove settings
//
// @mixin config-reset
Expand Down
12 changes: 12 additions & 0 deletions tests/specs/_config-manager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
$config: config-set($key, $value, $default);
}

// Gets a value to/from a configuration path
//
// @function config-get
//
// @param $key {string} The configuration path
// @param $default {bool} Whether the configuration is default
//
// @return {*} The value of the configuration path
@mixin config-get($key, $default: false) {
$config: config-get($key, $default);
}

// Remove settings
//
// @mixin config-reset
Expand Down

0 comments on commit d7d276d

Please sign in to comment.