oompa
🔧Factory Tools/OMP-1033Experimental

/snippet

Insert a reusable template or snippet block

Insert a pre-built template or reusable content block. Users can save/name snippets and reuse them across docs.

templatereusepattern
For: technical writers, template managers

Live Demo

See /snippet in action with CSS-animated examples.

CODE: /snippet
typescript
Define a reusable block template
(snippet becomes available in palette)

Rationale

Reusable templates save time and enforce consistency. "Snippet" = pre-molded candy shapes.

Acceptance Criteria

  • /snippet displays available snippets
  • User can select or create custom snippet
  • Snippet content is inserted inline
  • User can "Save as snippet" for any block type
  • Snippets are personal or team-shared

Demo Type

codeSyntax-highlighted code block

Semantic Layers

template
reuse
pattern

Requirements Traceability

Specification: OMP-1033

This command is defined in oompa-spec.yaml and part of the official requirement catalog.