Chapter 11. Code Snippets

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.

Figure 11-1. Entity-Relationship Diagram for Snippetdir and Snippet.

Entity-Relationship Diagram for Snippetdir and Snippet.

Snippets are meant to become a growing shared repository of templates and Midgard applications.