Skip to content

Commit c1d156b

Browse files
author
Corey B
committed
docs: sync specification and templating guide with v1.2.0 features
1 parent 2c719d0 commit c1d156b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

docs/TEMPLATING_GUIDE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Every `.fdd` file utilizes a Declarative Shadow Root explicitly bound to your cr
2323

2424
### 1.1 Property Binding
2525
Your HTML will automatically evaluate against the `#fdd-data` and `#user-notes` JSON variables. Simply utilize Handlebar mustache syntax:
26-
`<h1>Welcome to {{workspaceTitle}}</h1>`
26+
`<h1>Welcome to {{workspace.title}}</h1>`
27+
28+
OpenFDD supports **dot-notation** for nested properties (e.g., `{{party1.name}}`).
2729

2830
---
2931

@@ -80,7 +82,7 @@ You can inject CSS Grid layouts effortlessly across massive datasets natively us
8082
{{#each transactions}}
8183
<div class="card">
8284
<h3>Data Key: {{@index}}</h3>
83-
<p>Vendor: {{vendorName}}</p>
85+
<p>Vendor: {{vendor.legalName}}</p>
8486
<p>Amount: ${{amount}}</p>
8587
</div>
8688
{{/each}}

spec/SPEC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ To allow for "Protected Data" alongside "Mutable Notes," FDD enforces a layered
4444
### 3.1 Issuer Identity (did:web)
4545
Every `.fdd` document identifies its issuer using the `did:web` DID method. The issuer hosts a public key at a well-known URL, and any viewer can automatically resolve it to verify the document's authenticity.
4646

47-
- **Issuer URI format:** `did:web:yourdomain.com`
48-
- **Public key endpoint:** `https://yourdomain.com/.well-known/did.json`
47+
- **Issuer URI format:** `did:web:yourdomain.com` or `did:web:yourdomain.com:path`
48+
- **Public key endpoint:** `https://yourdomain.com/.well-known/did.json` (for domain DIDs) or `https://yourdomain.com/path/did.json` (for path DIDs).
4949

5050
### 3.2 Generating an Identity (One-Time Setup)
5151

@@ -120,8 +120,8 @@ To allow developers to build complex, reactive applications without violating th
120120
The `<template>` is evaluated using Mustache-syntax against the merged `#fdd-data` and `#user-notes` dictionaries.
121121

122122
```html
123-
<!-- Property binding -->
124-
<h1>{{accountBalance}}</h1>
123+
<!-- Property binding (supports dot notation for nested objects) -->
124+
<h1>{{account.holderName}}</h1>
125125

126126
<!-- Array iteration -->
127127
{{#each contacts}}

0 commit comments

Comments
 (0)