void render_see_section(String name) { StringList lines = split(file_get_contents("areas/"+name+".txt"), "\n"); s32 idx = 0; for(auto line : lines) { if(idx == 0) { <>

} RENDER(Request& context) { String page = first(context.get["p"], "index"); String page_title = page; nibble(page_title, "_"); <>

UCE Docs /

All API Functions

} else { auto doc = split(file_get_contents("pages/"+page+".txt"), "\n"); // Pre-extract sidebar-only sections so the article body stays focused. StringList equiv_lines; StringList see_lines; String sidebar_section = ""; for(auto s : doc) { if(s != "" && s.substr(0, 1) == ":") { sidebar_section = s.substr(1); } else if(sidebar_section == "related" && s != "") { equiv_lines.push_back(s); } else if(sidebar_section == "see" && s != "") { see_lines.push_back(s); } } String detail_class = "detail-layout"; if(equiv_lines.size() == 0 && see_lines.size() == 0) detail_class += " no-sidebar"; ?>
1 && !section_hidden) { ?>

Parameters

Signature

Description

  • :
    0 && !section_hidden) { ?>
    0 || see_lines.size() > 0) { ?> }