dataloops - nonlinear/canvas GitHub Wiki

Nunjucks automatically merges any .json file on app/data folder into a generated one.

Page reloads automatically if any app/data/*.json file is edited. To create a new .json file, turn gulp off and on again so new file is recognized recognized.

It fails gracefully: Any file with incorrect syntax is discarded in the generated one, with an error notification.

Editable JSON files

  • about.json: your project name, URL, author and google analytics

Dedicated JSON files (using dataloops)

  • countries.json: list of countries with code
  • departments.json: sample industry departments
  • industries.json: sample industries, for prototyping
  • languages.json: list of all languages, with code and native name
  • months.json: all 12 months. why repeat yourself?
  • states.json: US states, with codes
  • summer-sports.json: winter olympics sports
  • talks.json: sample conversations, for prototyping
  • users.json: sample users, for prototyping
  • winter-sports.json: summer olympics sports
  • years.json: list of years, from 1960 to 2017

Snippets

(check installation rules)

Use loop snippet for a basic loop, learn more on nunjucks documentation