vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 685 forks source link

support yaml data source in html task #585

Closed olets closed 4 years ago

olets commented 4 years ago

Adds support for YAML files. Use like so:

// in path-config.js

  "html": {
    "src": "html",
    "dest": "./"
  }
// in task-config.js

  html: {
    dataFile: "data/global.yaml"
  }
# src/html/data/global.yaml

message: Blendid!
{# some template #}

{{ message }} {# output: Blendid! #}