1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# Trivial example of string templating filter.
# The input data is in input/city.csv but could in practice be a record from a database.
# The template file template_city.xml already contains the main output with symbolic vars
# Variables from the CSV are substituted to produce the output file output/city.xml
[etl]
chains = input_csv|filter_template|output_file
[input_csv]
class = inputs.fileinput.CsvFileInput
file_path = input/city.csv
output_format = record
[filter_template]
class = filters.templatingfilter.StringTemplatingFilter
template_file = city_template.xml
[output_std]
class = outputs.standardoutput.StandardOutput
[output_file]
class = outputs.fileoutput.FileOutput
file_path = output/city.xml
|