₪ extensible HTML
xm is an innovative solution for web developers looking to enhance their HTML capabilities with a minimalistic approach. This tiny compiler introduces powerful features like the <import>, <slot>, and <fill> tags, allowing for better organization and modularization of HTML content. Built on top of posthtml-cli, xm not only simplifies the process of importing external HTML files but also supports Markdown integration, making it a versatile tool for creating dynamic web content.
With its user-friendly command-line interface and development mode, xm enables developers to compile, serve, and preview their built HTML effortlessly. By facilitating the reuse of components and the inline addition of Markdown documentation, xm stands out as a valuable asset for both personal projects and professional web applications.
Inline HTML Imports: Utilizing the <import> element, you can inline external HTML files seamlessly, helping maintain a clean code structure.
Dynamic Slots and Fill: The <slot> and <fill> tags allow you to define content placeholders within HTML files, which can be filled with imported content for greater flexibility.
Markdown Support: xm allows the importing of Markdown (.md) files, where front matter is transformed into fill elements, making it easy to generate styled documentation pages.
Relative and Absolute Paths: The <import> element allows for relative paths or absolute paths by prefixing with a "/", providing flexibility in managing file locations.
Development Mode: With a built-in development mode, xm compiles and serves HTML, enabling real-time previews and testing during development.
Extensibility: Built on posthtml-cli, xm offers a platform for custom extensions and functionalities, allowing you to tailor the compiler to meet your specific needs.
Reusable Themes: xm encourages the creation of reusable themes for documentation, making it easier to maintain the aesthetic and functional consistency across different projects.