A Million Little Pieces Of My Mind

Changes for March 12, 2026

By: Paul S Cilwa Posted: 3/12/2026
Updated: 10/25/2026
Page Views: 101
CilwaLib reorganization, shared code sync, TestBed updates, spider fixes, and inline script cleanup.
Estimated reading time: 2 minute(s) (345 words)

CilwaLib Documentation Site Reorganized

The entire CilwaLib section was restructured from a flat list of modules into a categorized hierarchy: Basic, System Tools, File System, and Controls. Landing pages were created for each category, and all module documentation pages were updated.

Shared Code Modules Synchronized

The three modules shared between CilwaLib and the website (SuperStrings, SuperFiles, and SuperDates) were compared, merged, and made identical. Functions unique to one side were added to the other. A bug in ToHtml's character-encoding order was fixed. The web-only ToCookieName function was moved to WebFileInfo.vb where it belongs. The date module was renamed to SuperDates for consistency with the other two.

TestBed Updated

The CilwaLib Test Bed was updated with new test rows exercising the merged functions: Safe, Remove, Matches, TrimClean, StripAnchorTags, ToHtml/FromHtml, CondenseBlankLines, ToBool overloads, IsPathPhysical, and ToSafeString. The SuperAudio button was disabled (not yet official) and the SystemRegistry button was wired up to write, read, and remove a temporary Registry key.

Spider and Page Registration Fixes

Fixed a bug where adding a new landing page (such as for System Tools) would not adopt child pages that had previously been registered as siblings. The reparenting logic now runs during page updates, not just initial registration. Also fixed a path-doubling bug in Badge/Thumbnail image URLs caused by concatenating site-relative paths incorrectly.

Inline Script Cleanup

The Copy-to-Clipboard script, which had been duplicated inline in 18 separate documentation pages, was consolidated into SiteMaster.js. The old, unused copyToClipboard function in SiteMaster.js was replaced with the modern delegated CopyButton handler.

TO DO

  • Use Visual Studio's Add as Link feature to share the three synchronized .vb files from CilwaLib into the website project, eliminating the need to maintain two copies.
  • Clean stale publish cache (obj\Debug) before future deployments to prevent ghost folders from reappearing on the server.
  • Consider a site-wide scan for other pages outside CilwaLib that may still contain inline CopyButton scripts.
  • Future: Migration plan to .NET 10 / Razor Pages saved in .claude\migration-plan.md for when the time comes.