A 5 minutes tutorial

  1. create the folder with the template

    mkdir my-template
    cd my-template
    
  2. add file that will be copied as is

    cat > file0.txt <<EOF
    I am file0.
    EOF
    
  3. add a template file that will be "rendered" by the handlebars engine

    cat > file1.txt.ffizer.hbs <<EOF
    I am file1.txt of {{ project }}.
    EOF
    
  4. add a ffizer configuration file (.ffizer.yaml)

    • to list variables
    • to list pattern to ignore
    variables:
      - name: project
        default_value: my-project
    
    ignores:
      - .git # exclude .git of the template host
    
  5. add a file with a name that will be "rendered" by the handlebars engine

    cat > '{{ project }}.txt' <<EOF
    I am a fixed content file with rendered file name.
    EOF