snip
A snip is the basic building block of information for vanilla-rb. Essentially, it is a piece of content with arbitrary attributes. Vanilla anticipates the presence of some key attributes:
name- the name of the snip, which is how it will be referred to. Thenameof this snip is snip.content- the default part of the snip to render. You can see thecontentof this snip here.render_as- the name of the renderer to use when rendering the content. Therender_asof this snip isMarkdown
.
One implementation of the snip store is soup.