- Run in deze map het volgende commando:
bundle install
Om het bestand genaamd groningen.kml te parsen run je het volgende commando:
bin/parse -s ./kml/groningen.kml -d ./output/groningen.py -t ./templates/django.mustache
Dit commando zal de file groningen.kml
parsen en vervolgens door het template genaamd django.mustache
gehaald worden. Het bestand dat hier uit komt wordt opgeslagen in groningen.py
in de output map.
Voor meer vragen over bin/parse
kan je ook runnen:
bin/parse --help
Voor een lijst van beschikbare commando's
Elke buurt heeft in de mustache templates beschikking over de volgende gegevens:
- bu_code: De buurtcode
- bu_naam: De buurtnaam
- gm_naam: De gemeentenaam
- wk_code: De wijkcode
- gm_code: De gemeentecode
Deze variabelen kunnen als volgt opgehaald worden:
{{bu_code}}
Voor meer vragen over Mustache, zie documentatie: