feat(postcard): sample values, file hashes, index sync and the draft editor
- sample.<path> header keys and a parse-tree walker that fills every other variable with a visible [path] placeholder, nested fields and range targets included - every file entry carries the sha256 of its CRLF-normalized text; the catalog lists its files (Templates, Layouts, Partials) for admin code - SyncIndex upserts one index row per file and never touches the override columns of a customized row; ResetOverride returns a row to its file - Editor validates, previews and test-sends a template, layout or partial draft through the render path of Send and reports field and rule - pact.RowStateCustomized and pact.RowStateOutdated Plan 35-01, task 4.
This commit is contained in:
12
modules/postcard/assets/sample.htm
Normal file
12
modules/postcard/assets/sample.htm
Normal file
@@ -0,0 +1,12 @@
|
||||
subject = "A sample message"
|
||||
description = "The message a mail layout is previewed around"
|
||||
==
|
||||
# A sample heading
|
||||
|
||||
This is how a message looks in this layout: a paragraph with **bold text** and [a link](https://example.com).
|
||||
|
||||
{{ partial "button" "url" "https://example.com" "body" "A button" }}
|
||||
|
||||
{{ partial "panel" "body" "A panel holds a note that should stand out." }}
|
||||
|
||||
Thanks for reading.
|
||||
Reference in New Issue
Block a user