summaryrefslogtreecommitdiff
path: root/docs/usage.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/usage.rst')
-rw-r--r--docs/usage.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/usage.rst b/docs/usage.rst
index 4256012..f992995 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -35,8 +35,20 @@ The code generation is driven by a rules document which applies the domain model
.. note:: Refer to http://jinja.pocoo.org and particularly the template designer documentation at http://jinja.pocoo.org/docs/dev/templates/.
+The initial folder structure should have a rules file and in the templates folder the required templates.
+
+.. code-block:: text
+
+ qface-rules.yml
+ templates/report.tpl
+
+
+The rules document provides the rules for code-generation.
+
+
.. code-block:: yaml
+ # qface-rules.yml
project:
system:
- project_report.csv: report.tpl
@@ -67,6 +79,14 @@ You call the yaml document by calling the qface executable and provide the rules
qface --rules rules-qface.yaml --target output echo.qface
+The output would then look like this.
+
+.. code-block:: text
+
+ output/project_report.csv
+
+
+.. rubric:: More ...
To know more about the different options just ask the help of qface.