Getting started with Markspresso
This guide shows how to scaffold a new site, run a build, and iterate on your content.
Prerequisites
- LuCLI installed and on your
PATH. - A directory where you want your static site to live (your "site root").
Installing Markspresso
lucli module install markspresso
From your site root, you will run commands via LuCLI:
lucli markspresso --help
1. Scaffold a new site
From an empty directory:
lucli markspresso create --name "My Site" --baseUrl "http://localhost:8080"
This will create:
markspresso.jsonโ site configurationcontent/โ Markdown content (includingindex.mdandposts/hello-world.md)layouts/โ HTML layouts (page.html,post.html) andlayouts/partials/assets/โ static files to be copied as-ispublic/โ build output directory (initially empty)lucee.jsonโ convenience config for serving thepublic/directory from LuCLI
You can re-run create with --force to overwrite existing starter files.
2. Build Markdown into HTML
From the same directory:
lucli markspresso build
By default this will:
- Read
markspresso.jsonand apply sensible defaults - Treat
content/as your source andpublic/as your output - Render all
*.mdfiles to HTML using the configured layouts - Copy any files under
assets/intopublic/
Useful flags:
--src=contentโ override the content directory--out=publicโ override the output directory--cleanโ delete the output directory before building--draftsโ include content marked asdraft: truein front matter
3. Serve the built site
Markspresso builds a static site into public/. You can serve it with any static HTTP server you like.
Because create also writes a lucee.json that points at the output directory, you can use LuCLI's own tooling or your preferred static server to host public/.
4. Watch for changes
For an efficient local workflow, use the watch command from your site root:
lucli markspresso watch
Markspresso will:
- Run an initial full build
- Watch
content/,layouts/, andassets/ - On content changes, trigger incremental rebuilds of the changed files (plus home page when needed)
- On layout changes, trigger a full rebuild
- On asset changes, copy changed assets to
public/
5. Next steps
Once you have your first build working, continue with:
- Site structure & configuration โ how
markspresso.jsoncontrols paths and collections - Content & front matter โ how to attach metadata to documents
- Layouts & partials โ customizing HTML output
- Posts & pages โ using Markspresso as a lightweight blog engine