.. ******************************************************************************* * MetaFactory.io R2 * Technical Documentation * * File name : CIX_JCIE_TextFiles.rst * Created by : Marnix Bochove (original text) * Last update : 22-03-2021 * Updated by : Niels de Nies * * MetaFactory BV Amsterdam ******************************************************************************* .. include:: /inline-images.txt .. include:: /metadata_include.txt Text files (plain files) ======================== MetaFactory produces several kinds of files: - java source code, - xml files and - plain text files like JavaScript, HTML, JSON, YAML. The element is the way to create create plain text files. .. rubric:: Usage .. code-block:: xml :caption: syntax :name: text files-01 :linenos: :emphasize-lines: 4-13 ... name="" path="" description="" writePolicy trimLeading="" trimTrailing="" format="" code instruction base ... .. rubric:: Attributes .. list-table:: **attributes of ** :widths: 20 80 :header-rows: 1 :class: tight-table * - Name - Details * - name - The name of the file made. Mandatory * - path - Path where the file is saved. * - description - Description of the file. Not used in the produced file. * - writePolicy - Generates the source only if the source does not already exist. Values: once|always. Default: allways * - trimLeading - true or false. If true, leading spaces are removed. * - trimTrailing - true or false. If true, trailing spaces are removed. * - format - |question s| * - code instruction base - |Loupe S| :ref:`Code instruction base `. .. rubric:: Sub elements .. list-table:: **sub elements of ** :widths: 15 70 15 :header-rows: 1 :class: tight-table * - Name - Details - Number * - body - Content of the file. A snippet can also be used. - 0 or 1