fix #9647 tmpl=>nimf (#9658)

This commit is contained in:
Timothee Cour 2018-11-13 23:27:48 -08:00 • committed by Andreas Rumpf
commit b5448bf25c
15 changed files with 23 additions and 15 deletions

View file

@ -31,13 +31,16 @@ Usage
=====
First, put your SCF code in a separate file with filters specified in the first line.
**Note:** You can name your SCF file with any file extension you want, but the conventional extension is ``.tmpl``.
**Note:** You can name your SCF file with any file extension you want, but the
conventional extension is ``.nimf``
(it used to be ``.tmpl`` but that was too generic, for example preventing github to
recognize it as Nim source file).
If we use `generateXML` code shown above and call the SCF file `xmlGen.tmpl`
If we use `generateXML` code shown above and call the SCF file `xmlGen.nimf`
In your `main.nim`:
.. code-block:: nim
include "xmlGen.tmpl"
include "xmlGen.nimf"
echo generateXML("John Smith","42")