Module Moustache pour fusion ODT
Project description
Moustache
=========
Moustache est un module de fusion documentaire ODT.
Installation
------------
Docker
~~~~~~
``docker run -p 5000:5000 gitlab.libriciel.fr:4567/outil/moustache:master``
Ubuntu
~~~~~~~
Sur une distribution Ubuntu 16.04 LTS, voici la procédure à suivre :
.. code:: bash
apt update -y
apt install -y libreoffice libreoffice-script-provider-python curl libmagickwand-dev
curl https://bootstrap.pypa.io/get-pip.py | python3
pip3 install moustache
Lancement
---------
Avant tout lancement de Moustache, il faut lancer libreoffice en mode
headless, sur le port 2002 :
.. code:: bash
soffice --headless --invisible --nologo --nodefault --nocrashreport --nolockcheck --norestore --nofirststartwizard --accept="socket,host=0,port=2002;urp;" &
Puis il suffira de lancer la commande :
.. code:: bash
moustache
Moustache sera ensuite accessible sur le port 5000.
Utilisation de l'API
--------------------
Fichier de configuration JSON
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ce fichier contient les élements à remplacer dans le template et les
élements permettant le contrôle de la transformation.
Les élements de contrôle commencent par **. L'utilisation de ** est
reservé à moustache.
- \_\_output\_format: odt (défaut ou valeur non reconnu) ou pdf
TODO documenter les appels d'API (curl)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=========
Moustache est un module de fusion documentaire ODT.
Installation
------------
Docker
~~~~~~
``docker run -p 5000:5000 gitlab.libriciel.fr:4567/outil/moustache:master``
Ubuntu
~~~~~~~
Sur une distribution Ubuntu 16.04 LTS, voici la procédure à suivre :
.. code:: bash
apt update -y
apt install -y libreoffice libreoffice-script-provider-python curl libmagickwand-dev
curl https://bootstrap.pypa.io/get-pip.py | python3
pip3 install moustache
Lancement
---------
Avant tout lancement de Moustache, il faut lancer libreoffice en mode
headless, sur le port 2002 :
.. code:: bash
soffice --headless --invisible --nologo --nodefault --nocrashreport --nolockcheck --norestore --nofirststartwizard --accept="socket,host=0,port=2002;urp;" &
Puis il suffira de lancer la commande :
.. code:: bash
moustache
Moustache sera ensuite accessible sur le port 5000.
Utilisation de l'API
--------------------
Fichier de configuration JSON
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ce fichier contient les élements à remplacer dans le template et les
élements permettant le contrôle de la transformation.
Les élements de contrôle commencent par **. L'utilisation de ** est
reservé à moustache.
- \_\_output\_format: odt (défaut ou valeur non reconnu) ou pdf
TODO documenter les appels d'API (curl)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for Moustache.beta-0.0.1.post16656.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a6edd22e2345746e3ed4b56a5af023187863b9ab06387c0419e9d8f7b4e9a2c |
|
MD5 | 93393d7fde7abc5a725247378f24d1ad |
|
BLAKE2b-256 | 921c797a6ff4fc6ae0ecf69bc1d8141eebfea76a84baaeb1cbf7f6158d11c767 |