<%# Installable as an app (PWA) — mainly so Android's share sheet offers MapTool as a target for GPX/FIT files, see public/sw.js. %> <%= yield %> <%# Every app module and every vendored module they import is versioned (ASSET_VERSION, a fresh value per deploy): map.js and the rest import each other — and /vendor modules — by plain path, and an import map remaps those paths to a versioned URL, so a deploy busts all of them without touching any import statement. A vendored module that changes with the app (mdi.mjs gaining an icon) can't be left cached while the module importing it is fresh. Static files are also revalidated (static_cache_control in app.rb) as a backstop for anything loaded some other way. Must come before the module script below: the importmap has to be parsed first. %>