New function to pick 'metadata' out of new .md convention for attributes.
This commit is contained in:
parent
0ba3e6c1d8
commit
402427ec04
1 changed files with 12 additions and 0 deletions
|
|
@ -279,6 +279,18 @@ fn app_handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Meta-data extract
|
||||||
|
|
||||||
|
fn get_var {
|
||||||
|
if(! ~ $#* 2) {
|
||||||
|
status='ERROR: wrong get_var args >>' $* '<< instead of: get_var file-name var-name'
|
||||||
|
dprint $status
|
||||||
|
}
|
||||||
|
if not
|
||||||
|
sed -n '/^\* '$2': /p; /^\* '$2': /q; /^$/q' < $1
|
||||||
|
}
|
||||||
|
|
||||||
#app_blog_methods = ( _post index.rss )
|
#app_blog_methods = ( _post index.rss )
|
||||||
#fn app_blog__post {
|
#fn app_blog__post {
|
||||||
# echo
|
# echo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue