3 Init File Basics

Init files are written in Perl, and by convention have extension .init or .pm. Several init files are included in the Texinfo distribution, and can serve as a good model for writing your own. Another example is the Texinfo::Convert::HTML module which implements almost all the Texinfo HTML function described in this manual for the conversion to HTML1. In Texinfo::Convert::HTML the API may not be followed strictly for performance reasons, in that case there should always be a ‘API info:’ comment which shows what the API conformant code should be. The Licenses conditions of the diverse files used as example should be taken into account when reusing code.


Footnotes

(1)

The Texinfo::Convert::HTML module also implements the HTML converter which go through the tree and call user defined functions.