Skip to content

Pure-YAML Rules file #29

Open
Open
@denisdefreyne

Description

@denisdefreyne

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

Advantages:

  • Fast to parse
  • Side-effect free
  • Can be checked statically ahead of time
  • Does not require learning Ruby
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions