In MonthPage::print_body(), I have this chunk of code:
var string cell_bgcolor;
foreach var MonthDay d ($.days) {
$cell_bgcolor = alternate($*comment_bar_one_bgcolor.as_s
if ($d.has_entries) {
"<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr>";
"<td style='background-color: $cell_bgcolor;'>";
"<dt><a class='nav' href='$d.url'><strong>";
print lang_ordinal($d.day);
"</strong></a></dt>\n";
"<dd>\n";
$d->print_subjectlist();
"</dd>\n";
"</td></tr></table>";
}
}
I'm getting this error when I load my Month page (the line numbers change on refresh):
Error running style: Died in S2::run_code running MonthPage::print(): Undefined subroutine &S2::Builtin::alternate called at /home/lj/cgi-bin/LJ/S2.pm line 1250, line 21.
So, presumably, it does not like my call to alternate(). Any idea why? If it matters, I'm basing my style off of Punquin Elegant.
Thanks!