#!/bin/bash
# Usage: make serve-templates [PORT=8090]

PORT="${1:-8090}"
DIR="$(cd "$(dirname "$0")/templates" && pwd)"

echo "Starting plugin templates server on http://localhost:$PORT"
echo "Press Ctrl+C to stop"
echo ""

php -S "localhost:$PORT" -t "$DIR"
