fakestache-ssg

[ARCHIVED] A static site generator in Bash 4.
Log | Files | Refs | Submodules | README

get-archetypes (316B)


      1 #!/bin/bash
      2 
      3 # Create an array with archtypes names
      4 get_archetypes () {
      5     archetypes=()
      6 
      7     for archetype in $ARCHETYPES_PATH/*; do
      8         # Template name without path
      9         archetypename=$(basename "$archetype")
     10         # Push templates names in the array
     11         archetypes+=(${archetypename%.*})
     12     done
     13 }