works enough for now
This commit is contained in:
commit
c04a9a752a
12 changed files with 178 additions and 0 deletions
7
compiler/render.py
Normal file
7
compiler/render.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
env = Environment(loader=FileSystemLoader("templates"))
|
||||
|
||||
def render_nat(rules):
|
||||
tmpl = env.get_template("vyos_nat.j2")
|
||||
return(tmpl.render(rules=rules))
|
||||
Loading…
Add table
Add a link
Reference in a new issue