Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: scrivito
node v14.20.1
version:
1.0.0
endpoint
share
tweet
require("react"); require("react-dom"); const Scrivito = require("scrivito"); const { cowsay } = require("cowsayjs"); Scrivito.configure({ tenant: "3edec9add34c7e9d21fbd9011da3fe63" }); Scrivito.provideObjClass("Homepage", { attributes: { title: "string" } }); const Obj = Scrivito.Obj.onSite("default"); const title = await Scrivito.load(() => Obj.root().get("title")); cowsay(title);
Created from: https://npm.runkit.com/scrivito
Loading…
no comments
sign in
to comment