Hi,
I'm trying to randomize two included templates called include_reviews.html and include_news.html
Here is the global I'm using
my @list = ('<%include_reviews.html%>', '<%include_news.html%>');
return $list[rand @list];
}
But the global does not include the template, it just prints out the text
<%include_reviews.html%>
or
<%include_news.html%>
Does anyone know how to randomize these templates?
Thanks
Matthias
Matthias
gpaed.de
I'm trying to randomize two included templates called include_reviews.html and include_news.html
Here is the global I'm using
Code:
sub { my @list = ('<%include_reviews.html%>', '<%include_news.html%>');
return $list[rand @list];
}
But the global does not include the template, it just prints out the text
<%include_reviews.html%>
or
<%include_news.html%>
Does anyone know how to randomize these templates?
Thanks
Matthias
Matthias
gpaed.de