mirror of
https://github.com/opnsense/docs.git
synced 2026-05-28 04:02:12 -04:00
Adjust template doc to match current code style (#421)
This commit is contained in:
parent
f3a97487a7
commit
cde27f8ed1
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue