2.0.1 • Published 7 years ago

ew v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

ew

Local template engine script thingy

This the code

#!/bin/sh

if [ ! -z "$TEMPLATES" ]; then
  printf 'bin/ew: TEMPLATES variable not set\n'
  exit 1
fi

if [ $# = "0" ]; then
  printf 'usage: ew <template_name>\n'
  exit 1
fi

template="$TEMPLATES/$1/main"
if [ ! -x "$template" ]; then
  printf 'bin/ew: template %s does not exist\n' "$1"
  exit 1
fi

shift
"$template" "$@"

License

MIT

2.0.1

7 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.0.1-security

8 years ago

0.0.0

8 years ago

0.0.2

10 years ago

0.0.1

10 years ago