NOTE: This repository is no longer supported or updated by the BNA Mechanics team. If you wish to continue to develop this code yourself, we recommend you fork it.
Svggloo is a tool to perform a data-merge operation in an SVG file.
The tool expects the following inputs:
- an SVG file to use as a template (see template details in the dedicated section below)
- a data file with the same name as the template, but with a
.csv
extension. Each record in the data file will produce a new output.
Usage:
svggloo --field country --field state --field city --export \
examples/quantifier/bike_lane_categories.svg
The template use the jinja2 syntax to perform replacements, therefore all
variables in the template must be surrounded by {{}}
, for instance {{name}}
.
The data file must be a CSV file.
The SVG export is done using inkscape. If the program is not found ssvggloo will abort the operation.