From 97daa62ce12c39b42e94bc7288b283e91e96c462 Mon Sep 17 00:00:00 2001 From: Nick Ricketts Date: Sun, 12 Jul 2026 23:29:41 -0500 Subject: [PATCH] nerak repo --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ec8598b..aa65c1d 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ select id, title from todos; Render the rows Nerak stores under `todos_data`: **`todos.html`** -```diff +``` {{< home}} {{$body}}

My Todos

@@ -188,7 +188,7 @@ Render the rows Nerak stores under `todos_data`: Wire up the module, database, and query: **`app.c`** -```diff +``` #include +#include @@ -230,7 +230,7 @@ insert into todos(title) values({{title}}); Add the form, repopulating the field and showing the error after a failed submit: **`todos.html`** -```diff +``` {{< home}} {{$body}}

My Todos

@@ -254,7 +254,7 @@ Add the form, repopulating the field and showing the error after a failed submit Add a `.post` verb and an `.errors` handler: **`app.c`** -```diff +``` #include #include @@ -341,7 +341,7 @@ Enter `{{#todo_data}}` first; after the join, `comments` lives inside each todo Link each list item to its detail page. `{{url:todo}}` resolves to the `todo` resource's pattern (`/todos/:id`) and fills `:id` from the current row, so no argument is needed: **`todos.html`** -```diff +``` {{#todos_data}} -
  • {{title}}
  • +
  • {{title}}
  • @@ -351,7 +351,7 @@ Link each list item to its detail page. `{{url:todo}}` resolves to the `todo` re Register the migration and add a `todo` resource: **`app.c`** -```diff +``` #include #include @@ -411,7 +411,7 @@ Both queries in one `sqlite_query()` call run concurrently. `join()` lifts `comm Show the responses on the home page: **`home.html`** -```diff +``` @@ -436,7 +436,7 @@ Show the responses on the home page: Fetch both services concurrently before rendering: **`app.c`** -```diff +``` #include #include @@ -485,7 +485,7 @@ insert into daily_stats(todo_count) select count(*) from todos; Register the migration, define the tasks, dispatch them from the POST: **`app.c`** -```diff +``` #include #include +#include @@ -585,7 +585,7 @@ This step moves todos into its own module and adds an `activity` module that rec ``` **`app.c`** -```diff +``` #include -#include -#include @@ -656,7 +656,7 @@ This step moves todos into its own module and adds an `activity` module that rec Add an Activity link to the shared nav: **`home.html`** -```diff +``` - @@ -679,7 +679,7 @@ Add an Activity link to the shared nav: The todos logic moves into the module unchanged, gaining a `publish()` and an `emit()` step. Both todo resources come along: **`todos/todos.c`** -```c +``` #include #include #include @@ -1491,7 +1491,7 @@ fetch({.url = "https://api.dev/charge", .ctx_key = "receipt", .meth = n_post, .j ``` **`.json`**: literal JSON request body; supports `{{interpolation}}`. -```c +``` fetch({.url = "https://api.push.dev/notify", .meth = n_post, .json = "{\"text\":\"New todo: {{title}}\"}"}) ```