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. Thename
of this snip is snip.content
- the default part of the snip to render. You can see thecontent
of this snip here.render_as
- the name of the renderer to use when rendering the content. Therender_as
of this snip isMarkdown
.
One implementation of the snip store is soup.