Make rc happy and comment work in progress code
This commit is contained in:
parent
ba321ad6f1
commit
934412c67f
@ -116,7 +116,7 @@ fn make_blog_post {
|
||||
for(f in $bdir/$date-*) {
|
||||
i = `{echo $f | sed -n 's|^.*/'$date'-([0-9]+)_.*|\1|p'}
|
||||
if(! ~ $#i 0 && test $i -ge $n)
|
||||
n = `{hoc -e $i'+1'}
|
||||
n = `{hoc -e $i'+1'}
|
||||
}
|
||||
title = `{echo $"title | sed 's/[ ]+/_/g; 1q'}
|
||||
|
||||
@ -126,27 +126,27 @@ fn make_blog_post {
|
||||
|
||||
|
||||
# --------
|
||||
|
||||
app_blog_methods = ( _post index.rss )
|
||||
fn app_blog__post {
|
||||
|
||||
}
|
||||
|
||||
app_blog___default {
|
||||
if (~ $blog
|
||||
call_app blogpost
|
||||
}
|
||||
|
||||
# --
|
||||
app_blogpost_methods = ( comment _edit )
|
||||
|
||||
fn app_blogpost_comment {
|
||||
call_app comments
|
||||
}_
|
||||
|
||||
# --
|
||||
app_comments_methods = ( _post _edit )
|
||||
|
||||
fn app_comments___default {
|
||||
|
||||
}
|
||||
#
|
||||
#app_blog_methods = ( _post index.rss )
|
||||
#fn app_blog__post {
|
||||
# echo
|
||||
#}
|
||||
#
|
||||
#app_blog___default {
|
||||
# if (~ $blog)
|
||||
# call_app blogpost
|
||||
#}
|
||||
#
|
||||
## --
|
||||
#app_blogpost_methods = ( comment _edit )
|
||||
#
|
||||
#fn app_blogpost_comment {
|
||||
# call_app comments
|
||||
#}
|
||||
#
|
||||
## --
|
||||
#app_comments_methods = ( _post _edit )
|
||||
#
|
||||
#fn app_comments___default {
|
||||
#
|
||||
#}
|
||||
|
@ -251,9 +251,7 @@ if(test -f etc/initrc.local)
|
||||
|
||||
# Parse request URL
|
||||
uri = `{echo -n $REQUEST_URI | sed -e 's/\?.*//; s/'^$forbidden_uri_chars^'//g; s/\.\.*/./g;' -e '1q'}
|
||||
ifs='/' {
|
||||
args = `{echo -n $uri}
|
||||
}
|
||||
ifs='/' { args = `{echo -n $uri} }
|
||||
|
||||
|
||||
if(! ~ $#debug 0)
|
||||
|
Loading…
Reference in New Issue
Block a user