Herman 2.0.0

Private API Utilities

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

$_herman-plural-types (map) [private]

scss
$_herman-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 herman-add()

@function _herman-encode() [private]

Encode any Sass value as a JSON-ready string.

Parameters

$value: $herman (*)

Data to be encoded for JSON exporting

Requires

@function _herman-encode-list() [private]

@function _herman-encode-map() [private]

@function _herman-encode-number() [private]

@function _herman-quote() [private]

Used By

@function _herman-encode-list() [private]

@function _herman-encode-map() [private]

@function _herman-encode-list() [private]

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 _herman-encode() [private]

Used By

@function _herman-encode() [private]

@function _herman-encode-map() [private]

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 _herman-quote() [private]

@function _herman-encode() [private]

Used By

@function _herman-encode() [private]

@function _herman-encode-number() [private]

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

Parameters

$number: (number)

Number to be encoded for JSON exporting

Requires

@function _herman-quote() [private]

Used By

@function _herman-encode() [private]

@function _herman-quote() [private]

Convert any value to a double-quoted string.

Parameters

$value: (*)

The value to inspect and quote.

Requires

@function _herman-escape-quotes() [private]

Used By

@function _herman-encode() [private]

@function _herman-encode-map() [private]

@function _herman-encode-number() [private]

@function _herman-escape-quotes() [private]

Return a string, with internal quotes escaped.

Parameters

$string: (string)

The string to be manipulated

Used By

@function _herman-quote() [private]