Herman 6.0.0

Private API Utilities

Internal utilities, used by Herman’s Sass Export API.

$plural-types (map) [private]

scss
$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]

Used By

@mixin export()

@function encode-list()

@function encode-map()

@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

Requires

@function encode()

Used By

@function encode()

@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

Requires

@function quotes() [private]

@function encode()

Used By

@function encode()

@function encode-number()

Encode a number for JSON, adding proof-quotes for length values.

Parameters

$number: (number)

Number to be encoded for JSON exporting

Requires

@function quotes() [private]

Used By

@function encode()

@function quotes() [private]

Convert any value to a double-quoted string.

Parameters

$value: (*)

The value to inspect and quote.

Requires

@function escape-backslashes() [private]

@function escape-quotes() [private]

Used By

@function encode()

@function encode-map()

@function encode-number()

@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

Used By

@function quotes() [private]