Header Files¶
reStructuredPython offers a new and exciting feature not present in regular python. The addition of header files, written in a
.cdataor.repyfile extension are regular.repyfiles written in reStructuredPython that are compiled and automatically prepended in the final compilation of a.repyfile.Example usage:
include 'path/to/my/file.repy' afunctiondefinedintheheaderfile()
file.cdata:def afunctiondefinedintheheaderfile() { print('This function was made in a header file') }Result:
def afunctiondefinedintheheaderfile() : print('This function was made in a header file') afunctiondefinedintheheaderfile()