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

pull/420/head^2
Dalton Burke 2 years ago committed by GitHub
parent f3a97487a7
commit cde27f8ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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')

Loading…
Cancel
Save