Conversation
|
This PR will trigger a minor release when merged. |
Code ReviewOverviewThis PR adds support for serving ✅ Strengths
💡 Suggestions for Improvement1. Duplicate Security Validation (
|
…ter sanitization Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
# [16.16.0](v16.15.13...v16.16.0) (2025-11-13) ### Features * add .plain.html support for HTML folder serving ([#2631](#2631)) ([2186d4c](2186d4c))
|
🎉 This PR is included in version 16.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Adds support for
.plain.htmlfiles in HTML folder mode with metadata extraction. When a request comes in for a path without an extension (e.g.,/drafts/page), the server now:.htmlfile (existing behavior).plain.htmlfile (new).plain.htmlcontent<html><head><body><header><main><footer>This enables content preview workflows where users can create simple HTML fragments with metadata, and the CLI automatically provides the complete page structure with proper meta tags.
Changes
handleHtmlFolderRequest()to use DRY approach with shared serving logicresolveHtmlFolderFile()to check.htmlthen.plain.htmlwith proper prioritytransformPlainHtml()to wrap plain content with HeadHtmlSupport integrationTesting
All tests pass (25 HTML folder tests, 252 total). New tests verify:
Documentation