// Icon Font Content
// =================
//
// Going to pilot a new approach to the Icon Font mixin
//
// Usage:
//
// .some-icon {
//     content: icon-content('twitter');
// }
// 
// Dependencies:
//
// $icon-list is required to be been previously defined, which is a map of all
// available with which icon-address() will scan to return the desired icon code.


// @function: Icon Code
// --------------------

@function icon-font-content($icon-name) {
    // Return the icon font text value
    @if (map-has-key($icon-list, $icon-name)) {
        @return map-get($icon-list, $icon-name);
    }
    
    // The desired icon does not exist in $icon-list
    @else {
        @warn '$icon-name is not set. Refer to $icon-list for a list of available icons';
    }
}

// Icon Font Content
// =================
//
// Going to pilot a new approach to the Icon Font mixin
//
// Usage:
//
// .some-icon {
//     content: icon-content('twitter');
// }
// 
// Dependencies:
//
// * $icon-font-list must be already declared


// @function: Icon Code
// --------------------

@function icon-font-content($icon-font-key) {
    // Return the icon font text value
    @if (map-has-key($icon-font-list, $icon-font-key)) {
        @return map-get($icon-font-list, $icon-font-key);
    }
    
    // The desired icon does not exist in $icon-font-list
    @else {
        @warn '$icon-font-key is not set. Refer to $icon-font-list for a list of available icons';
    }
}

Fix variables, some of which were renamed
Fix variables, some of which were renamed
