From 9ab4acbca1920c3736b69f938dd0b03e69598564 Mon Sep 17 00:00:00 2001 From: cadons Date: Sun, 5 Jul 2026 20:15:48 +0200 Subject: [PATCH] docs(templates): add static-data invoice example with no ${} vars Provides a runnable invoice .craft example using literal mock data and a schema-valid // table instead of the unimplemented model="${items}"/Foreach data-binding pattern. Co-Authored-By: Claude Sonnet 5 --- doc/project-doc/users/templates/README.md | 2 + .../users/templates/invoice-static.craft | 125 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 doc/project-doc/users/templates/invoice-static.craft diff --git a/doc/project-doc/users/templates/README.md b/doc/project-doc/users/templates/README.md index 18cba75..9dc47e6 100644 --- a/doc/project-doc/users/templates/README.md +++ b/doc/project-doc/users/templates/README.md @@ -7,6 +7,8 @@ These templates are designed for application users of the Docraft library. - `hello-world.craft`: minimal working example. - `basic-report.craft`: multi-section report with header/footer/page number. - `invoice-foreach.craft`: invoice layout using template variables and `Foreach`. +- `invoice-static.craft`: full invoice layout with literal mock data, no template + variables — runnable as-is. - `table-json.craft`: table populated from JSON template variables. ## Required variables for `invoice-foreach.craft` diff --git a/doc/project-doc/users/templates/invoice-static.craft b/doc/project-doc/users/templates/invoice-static.craft new file mode 100644 index 0000000..e531f82 --- /dev/null +++ b/doc/project-doc/users/templates/invoice-static.craft @@ -0,0 +1,125 @@ + + + + + Nova Design Studio + Invoice INV-2026-0417 + + + +
+ + Nova Design Studio + 48 Market Street, San Francisco, CA 94105 + +
+ + + + + INVOICE INV-2026-0417 + + + + + + Bill To: + Harborline Retail Group + 220 Harbor Blvd, Oakland, CA 94607 + accounts@harborlineretail.com + + + + + + + Date: July 5, 2026 + + + Due Date: August 4, 2026 + + + Payment Terms: Net 30 + + + + + + + + + Description + + + Qty + + + Unit Price + + + Amount + + + + + Brand Identity Design + 1 + $3,200.00 + $3,200.00 + + + Website Development (hrs) + 40 + $95.00 + $3,800.00 + + + Monthly Hosting & Support + 3 + $150.00 + $450.00 + + +
+ + + + + + Subtotal: + $7,450.00 + + + Tax (8%): + $596.00 + + + + Total: + $8,046.00 + + + + + +