Project
boxlang-ssg
A static site generator for BoxLang. Install it once as a BoxLang module, then run it in any folder that holds a site, the way you would use Hugo or Jekyll. Pages are written in Markdown or BoxLang markup (.bxm) with YAML front matter, and rendered through views and layouts into plain HTML that works on any static host. It began as a rewrite of commandbox-ssg that needs only the BoxLang CLI.
Serve, watch, reload
serve previews the site on a built-in web server, rebuilds when a source file changes and reloads the browser. build --watch rebuilds without serving.
Markdown and .bxm
Both with YAML front matter, plus defaults for a whole folder. new creates a post or page with its front matter filled in.
Collections & data
Documents by type, by tag and by any front matter key you list, with excerpts and previous/next links. JSON, YAML and CSV data from _data/.
URLs that work anywhere
Folder-style URLs, permalink patterns per type, pagination, and a baseUrl for sites served from a sub-path. The starter has an Atom feed and a sitemap.
bashinstall-bx-module boxlang-ssg bx-yaml bx-markdown bx-jsoup
boxlang module:ssg init my-site
cd my-site
boxlang module:ssg serve
Requires BoxLang 1.19.0 or later. serve builds the site into _site/ and previews it at http://localhost:8080/.
For a complete site to read or start from, ssg-template is a fictional astronomy club blog that uses every feature of boxlang-ssg 1.1, with a table of where each one lives.