Private API Utilities
Internal utilities, used by Herman’s Sass Export API.
$plural-types (map) [private]
$plural-types: (
'color': 'colors',
'size': 'sizes',
'ratio': 'ratios',
'font': 'fonts',
);
A map of data-types understood by herman, for correcting singular input so data is consistently stored with a plural access key.
Used By
@mixin add()
@function encode()
Encode any Sass value as a JSON-ready string.
Parameters
$value: $herman (*)
Data to be encoded for JSON exporting
Requires
@function encode-list()
@function encode-map()
@function encode-number()
@function quotes() [private]
@function encode-list()
Encode each item in a Sass list, and convert to a JSON-ready square-bracketed list.
Parameters
$list: (list)
List to be encoded for JSON exporting
@function encode-map()
Encode each key/value in a Sass map, and convert to a JSON-ready object.
Parameters
$map: (map)
Map to be encoded for JSON exporting
@function encode-number()
Encode a number for JSON, adding proof-quotes for length values.
Parameters
$number: (number)
Number to be encoded for JSON exporting
@function quotes() [private]
Convert any value to a double-quoted string.
Parameters
$value: (*)
The value to inspect and quote.
@function escape-quotes() [private]
Return a string, with internal quotes escaped.
Parameters
$string: (string)
The string to be manipulated
Used By
@function quotes() [private]
@function escape-backslashes() [private]
Return a string, with internal backslashes escaped.
Parameters
$string: (string)
The string to be manipulated