AppCode 2017.2 Help

#parse Directive

Using the #parse directive, you can include other templates in file templates. This is useful for inserting reusable contents (e.g. standard headers, copyright statements, etc.) into multiple file templates.

The syntax for the #parse directive is:

#parse("<template_name.extension>")

For example: #parse("Objective-C File Header.m").

The templates that can be referenced like this in other templates, are shown on the Includes tab of the File and Code Templates settings page.

Last modified: 13 December 2017

See Also