Jinja2 Environment option "lstrip_blocks" produces TypeError -


i using ubuntu 12.04, python 3.2.3 , jinja2 2.6-1.

when passing option lstrip_blocks environment follows, error

"**typeerror: \__init__() got unexpected keyword argument 'lstrip_blocks'**"

from jinja2 import environment, packageloader env = environment(loader=packageloader('jinja2_hello','.'),lstrip_blocks=true) template = env.get_template('template_hello.html') output = template.render() print(output) 

the template template_hello.html contains only:

hello 

the other option 'trim_blocks`, alone, works perfectly.

would have suggestions solve this. haven't been able fix it. thanks

the lstrip_blocks option added in jinja 2.7.


Comments