jason-dour / hugo-preproc

Helper for Hugo to provide for pre-processing of files.
GNU Affero General Public License v3.0
10 stars 0 forks source link

Need to refactor configuration file syntax. #5

Closed jason-dour closed 2 years ago

jason-dour commented 2 years ago

https://github.com/jason-dour/hugo-preproc/blob/d8c8b316db148c0da721373ec4269f8c35730248/README.md#L40

jason-dour commented 2 years ago

Propose the following:

git:
  - path: path/to/repo
    processors:
      - mode: [ head | each | all ]
        file: path/to/outputfile
        template: "template string"
  - path:
    processors:
      - mode: [ head | each | all ]
        file: path/to/outputfile
        template: "template string"
exec:
  - path: path/to/search
    pattern: *.md
    command: "echo {{ . }}"

Allows for: