Midgard uses code Snippets and Snippet directories to handle library-like code in a format that enables sharing the code between Hosts.
Code Snippets are stored in Snippetdir tree hierarchies within the Midgard database. They may contain html templates, style sheets, sclasses or utility functions, etc... See Figure 11-1.
Snippets are meant to become a growing shared repository of templates and Midgard applications.