On Tuesday, November 17, 2020 at 11:08:39 AM UTC-6 Edward K. Ream wrote:
It was difficult for me to understand how to make c.getNodePath(p) return
> the correct values. The @path directive influences this, so it can be set
> by hand if required, but doing so is clumsy.
>
You could say I was "lucky" in putting @jinja nodes in a file in my home
directory. This revealed various problems with paths. The code should
report missing directories and files without crashing. More importantly,
the code should be tested in "unusual" places. On windows, I got several
access errors.
*First successful test*
- @jinja (body will contain rendered output, as does the VR pane)
- @jinja template (body should contain path to template)
- @jinja inputs
- @jinja variable name (body contains value)
Example:
- Body of `@jinja template` node contains
`c:\test\JinjaTemplates\TestTemplate.txt`
- TestTemplate.txt contains `Hello {{ name }}!`
- Body of `@jinja variable name` contains `World`
- The output (in the body of @jinja node, and the VR pane) is `Hello World`.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/98bf4ab5-1c90-4418-ac88-adf8a69dc7d9n%40googlegroups.com.