add generic page renderer with block dispatch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-26 18:07:57 +00:00
parent 35f96e43a6
commit 32f54c7afc
3 changed files with 1004 additions and 1 deletions

View File

@@ -1,9 +1,15 @@
defmodule Berrypod.PagesTest do
use Berrypod.DataCase, async: true
use Berrypod.DataCase, async: false
alias Berrypod.Pages
alias Berrypod.Pages.{Page, BlockTypes, Defaults, PageCache}
setup do
# Clear cached pages between tests so save_page side effects don't leak
PageCache.invalidate_all()
:ok
end
describe "get_page/1" do
test "returns defaults when nothing in DB" do
page = Pages.get_page("home")