PyCharm 2016.3 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("ActionScript File Header.as").

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.

See Also

Last modified: 23 December 2016