zodiac/example/site/helpers.awk

15 lines
254 B
Awk
Raw Normal View History

2011-09-22 17:28:24 +02:00
{ helpers = "yes" }
function load_helpers() {
data["page_title"] = page_title()
}
function page_title( title) {
if (data["title"]) {
title = data["title"] " - " data["site_title"]
2011-10-18 07:07:12 +02:00
} else {
title = data["site_title"]
2011-09-22 17:28:24 +02:00
}
return title
2011-09-22 17:28:24 +02:00
}