Support and Documentation

Variables

You can configure Styleguide variables for use in the techniques described in Mocking data. In the _config.json file define the vars entry.

{
  "vars": {
    "color": "blue"
  }
}

The variables defined in this way may be accessed in your JSON files to provide a value:

{
  "headline": "The sky is {{var('color')}} today."
}