Adjust template doc to match current code style (#421)

This commit is contained in:
Dalton Burke 2022-08-06 00:41:12 -06:00 committed by GitHub
parent f3a97487a7
commit cde27f8ed1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,10 +134,10 @@ configd, to use (or test) the system without the daemon, use:
from modules import config
 
# construct a new template object, set root to /tmp/
tmpl = template.Template(target_root_directory="/tmp/")
tmpl = template.Template(target_root_directory='/tmp/')
# open the config.xml and bind to template object
conf = config.Config('/config.xml')
tmpl.setConfig(conf.get())
tmpl.set_config(conf.get())
 
# generate output for OPNsense/Sample
generated_filenames = tmpl.generate('OPNsense/Sample')