Users design by filling in the schema for a Hof Generator.
Server, @gen(server)
This is the block which defines an entrypoint to hof gen,
using @gen(tags...) and unifying with our generator gen.#HofGenerator.
examples/gen.cue
packageexamplesimport ("hof.io/docs/example/gen")Server: gen.#Generator & { @gen(server) Outdir: "./output"// We write the design in a separate file Server: ServerDesign// Needed because we are using the generator from within it's directory// Users who import your generator as a module will not need to set this// It's a temporary requirement until CUE supports embedded files PackageName: ""}
ServerDesign, with the schema
This is the user created design for our server generator.