4 local path="${1:-${PATH_INFO}}"
6 # Get directory part of PATH_INFO
10 [ "$path" = / ] && break
13 if ! acl_read "$path"; then
15 elif [ -f "$_DATA/pages/$path/#page.md" ]; then
16 pagefile="$_DATA/pages/$path/#page.md"
17 elif [ -f "$_EXEC/pages/$path/#page.md" ]; then
18 pagefile="$_EXEC/pages/$path/#page.md"
25 /^%css([\t ]+.*)?$/bCSS;
32 /^(%[ \t]+|%css[ \t]+|[ \t]+)[^ \t\r]+$/bCSS;
33 /^(%[ \t]*|%css[ \t]*)$/bCSS;
34 ' <"$pagefile")${BR}${css}"
40 PAGE_CSS="$(css "${PATH_INFO}")"