Hey, all. I am using Generator, and up 'til now I've pretty much been able to get my layout to do what I want it to. Well, I want to add a links list to my journal, but it drives me no end of insane to have the links all in a row with no breaks. Ideally, I'd like to set up my links list so there's a line break in between each link, but if not that
(
Read more... )
Comments 3
function Page::print_linklist() {
if (size $.linklist <= 0) {
return;
}
println """
Links
""";
var bool section_open = false;
if (not $.linklist[0].is_heading) {
println """[ Links ]""";
$section_open = true;
}
foreach var UserLink l ($.linklist)
{
if ($l.title)
{
if ($l.is_heading)
{
if ($section_open)
{
println """""";
}
println """[ $l.title ]""";
$section_open = true;
}
else
{
println """ $l.title
""";
}
}
}
println """""";
"""
""";
}
Reply
Reply
Reply
Leave a comment