Getting started
From an empty folder to a standalone, checked page.
First page
Four commands take you from an empty folder to a standalone, checked page.
Build a page
Create the skeleton, read the fragment contract, add a section and run the check.
- 01Skeleton
- 02Contract
- 03Composition
- 04Check
python3 scripts/scaffold.py ./output/report --surface interface --title "Report"python3 scripts/compose.py ./output/report --fragment section --list-placeholderspython3 scripts/compose.py ./output/report --fragment section --dry-run \
--set SECTION_ID=summary --set SECTION_TITLE="Summary" \
--set SECTION_SUMMARY="A short explanation" \
--html 'SECTION_CONTENT=<p>Content</p>'python3 scripts/check_project.py ./output/reportRecipe markup
What the recipe shows
- Start with a minimal skeleton without demo data.
- Check the fragment contract before filling in content.
- The finished page passes the same validator as the Craft catalogs.