Sure. In the TemplateWriterTask documentation under “A more advanced template” the last paragraph reads:
Therefore, with Jinja2’s templating language we can write fairly general templates. While variable substitutions, if/then statements, and for loops should cover the majority of cases, you can see even more features in the official Jinja2 documentation. For example, you can use template inheritance or insert templates into other templates.
I don’t know what subset is broken because of this issue, but import and include are. This is something that I’ve seen mentioned in reports to other projects as well, so likely there is a workaround somewhere we could borrow. I just wanted to make sure it wasn’t me.
Eli
···
On Friday, February 8, 2019 at 10:57:34 AM UTC-8, Anubhav Jain wrote:
The include capability is part of the Fireworks documentation, so I gather there is an intention for it to work.
Could you point me to where you see this in the docs?
I haven’t worked with trying more complex templates with the %include command myself, so might not be able to help
On Friday, February 8, 2019 at 10:23:50 AM UTC-8, [email protected] wrote:
When I attempt to include another file in Template using {include 'blah.txt' } I get the following error:
TypeError: no loader for this environment specified
From a quick google, this is apparently a fairly common problem for client codes using jinja2. The include capability is part of the Fireworks documentation, so I gather there is an intention for it to work. Is this a bug or something I’m doing wrong on my end?
I am using windows with anaconda2 and python 2.7.