@page "/custom-nodes"
A NodeTemplate renders your own markup inside each node: here a colour node with a working colour
picker and two labelled source handles, while every other node falls back to the built-in look through
BlowDefaultNode.
NodeTemplate is a RenderFragment<BlowNode> that replaces the content of every node; it switches on node.Type and reads its own payload from node.Data.@@bind on the picker writes straight into the node's ColorData, and the re-render that follows redraws the node.nodrag class (the canvas's NoDragClass), so pressing it neither selects nor drags the node.BlowHandle goes anywhere in the template: Type and Position say what and on which side, Style="top:35%" moves it along that side, and an Id tells handles of the same type apart. The starting edges pick theirs with SourceHandle = "a" and "b".Ports on the node model declares the two outputs as BlowPorts; a port's Label becomes its handle's tooltip and the name a screen reader hears when connecting from the keyboard.BlowDefaultNode, which draws the built-in content; Mixer's TargetPosition and SourcePosition put its handles on the left and right.Width = 180 fixes the colour nodes' width. With a template set, the add-ons go in an explicit <ChildContent>.