"""Build LuCI template version from working file.""" with open(r'E:\AI Project\WangAgent\_tmp_extract\router_live.htm', 'r', encoding='utf-8') as f: c = f.read() # Remove standalone HTML wrapper (everything before ...