jinja2模板简单使用

def createReport(content):
env = Environment( loader = FileSystemLoader( 'htmltemplate' ) )
tmpl = env.get_template( 'template.html' )
f = open( "report.html","w" )
f.write(
tmpl.render( templateValue = content )
)
f.close()

你可能感兴趣的:(html,F#)