Segment files
More content files can contain the same piece of information. These text blocks can be placed in special content files called segments. The segment files help to avoid repeating texts and make easier the maintenance. The segment files can also be used to separate some kind of contents by some principle definition to facilitate understanding and maintenance.
The segment files can have .md and .html extensions. They belong to the
/components
. The segment files can appear in the root directory of /components
and in the language directories as well. If there is a segment file in the root
directory and another one with the same name in a language directory, the latter
will be used.
The segments theirself may contain other segments and controls, respectively.
If the name of the segment file contains exlamation mark (
!
) then the tokens of other segments will be handled as simple text, i.e. the tokens will not be replaced by the content of the referred file.
An example footer segment:
***
Help Required | About Us | Legal Stuff
--------------------|--------------------|---------------------
[Documentation](/) | [About Company](/) | [Terms of USe](/)
[Support](/) | [Jobs](/) | [Code of Conduct](/)
[Contact Us](/) | [Blogs](/) | [Privacy Policy](/)
[Website Issues](/) | [Twitter](/) | [Reporting Abuse](/)
[Security](/) | [Github](/) | [Other Policies](/)
{{ copyright }}