nanoc / features

Collection of feature requests
2 stars 1 forks source link

Pure-YAML Rules file #29

Open denisdefreyne opened 6 years ago

denisdefreyne commented 6 years ago

It might be worth allowing the Rules file to be not pure Ruby, but rather a less powerful (configuration) language.

Advantages:

items:
  - match: "/**/*.md"
    actions:
      - filter: kramdown
      - write: "${item.identifier.without_ext}.html"
  - match: "/**/*.md"
    rep: raw
    actions:
      - write: "${item.identifier.without_ext}.txt"
  - match: "/**/*"
    actions:
      - write: "${item.identifier.without_ext}"

layouts:
  - match: "/**/*"
    filter: erb