@@ -44,6 +44,14 @@ Write to file (use nixpkgs `writeText`):
4444pkgs.writeText "index.html" (inputs.niccup.lib.render [ "p" "Hello" ])
4545```
4646
47+ Some more involved examples:
48+
49+ - [ art] ( examples/art/ ) - Generative SVG (Sierpinski triangle)
50+ - [ blog] ( examples/blog/ ) - Multi-page blog with navigation
51+ - [ docs] ( examples/docs/ ) - NixOS module documentation generator
52+ - [ quine] ( examples/quine/ ) - Self-rendering page
53+
54+
4755## Data Model
4856
4957** Element** : ` [ tag-spec attrs? children... ] `
@@ -66,10 +74,10 @@ pkgs.writeText "index.html" (inputs.niccup.lib.render [ "p" "Hello" ])
6674
6775## API
6876
69- - ` render : expr -> string ` — Render to minified HTML string.
70- - ` renderPretty : expr -> string ` — Render to indented, human-readable HTML.
71- - ` raw : string -> node ` — Mark content as unescaped HTML.
72- - ` comment : string -> node ` — Emit HTML comment.
77+ - ` render : expr -> string ` - Render to minified HTML string.
78+ - ` renderPretty : expr -> string ` - Render to indented, human-readable HTML.
79+ - ` raw : string -> node ` - Mark content as unescaped HTML.
80+ - ` comment : string -> node ` - Emit HTML comment.
7381
7482Exported as ` lib ` from the flake.
7583
@@ -89,4 +97,4 @@ just example blog # builds only the `blog` example
8997
9098## License
9199
92- MIT 2025 - [ @embedding-shapes ] ( https://github.com/embedding-shapes )
100+ MIT 2025 - [ @embedding-shapes ] ( https://github.com/embedding-shapes )
0 commit comments