pagex: add support for directly passing fragments in fragment()

voidcannon: reflect latest change
content: reflect latest change
This commit is contained in:
bignutty
2025-11-25 22:44:34 +01:00
parent b7dcf2c0b6
commit 7aa0cb1818
4 changed files with 5 additions and 11 deletions

2
pagex

Submodule pagex updated: d4fbbc31e8...e696c68ca6

View File

@@ -10,7 +10,7 @@ export default {
path: "dist", path: "dist",
static: "_" static: "_"
}, },
pagex_content: { resources: {
content: "./src/", content: "./src/",
templates: "./voidcannon/src/", templates: "./voidcannon/src/",
client: { client: {

View File

@@ -3,13 +3,7 @@ import {
VoidcannonSectionType VoidcannonSectionType
} from "voidcannon"; } from "voidcannon";
import {PagexResourceTransformer} from "pagex"; import NotFoundFragment from "voidcannon/src/fragments/notfound/NotFound.fragment.js";
import CollectionContentTransformer from "voidcannon/src/transformers/CollectionContent.transformer.js";
import RecentContentTransformer from "voidcannon/src/transformers/RecentContent.transformer.js";
import ContentByIdentifierTransformer from "voidcannon/src/transformers/ContentByIdentifier.transformer.js";
import playground from "../../articles/playground/playground.pagex.js";
import playgroundP3 from "../../articles/playground-p3/playground-p3.pagex.js";
import playgroundTotk from "../../articles/playground-totk/playground-totk.pagex.js";
export default { export default {
type: VoidcannonContentType.EDITORIAL, type: VoidcannonContentType.EDITORIAL,
@@ -21,7 +15,7 @@ export default {
sections: [ sections: [
{ {
type: VoidcannonSectionType.FRAGMENT, type: VoidcannonSectionType.FRAGMENT,
fragment: "fragments/notfound/NotFound", fragment: NotFoundFragment,
params: {} params: {}
} }
] ]