Summary
In this chapter, you have learned how to create snippets and the different ways of rendering output. You have also learned how to use the available MODx APIs as well as why you should use them. You have created a new snippet for the site to display a random fortune. The snippet accepts a parameter for a chunk and renders the output by using chunks and placeholders. You also learned how snippets can make use of external files.