Include
With the include
directive you can include the contents of another file inside your template. The contents of the included file will be treated as if the contents of that file were written in place of its include
directive.
Depending on the included file's file extension, corgi will treat included files differently:
.corgi
: The file will be treated as corgi code, and will be parsed by the parser..html
,.js
, or.css
: The file will be minified and included in the output.Any other file will be escaped using
woof.EscapeHTMLBody
and written to the output.
Included .corgi
-files may also import
and use
other files.
Last updated
Was this helpful?