WebDev Module and Html Templating

All - I am interested in html templating approaches from within the WebDev module. Similar to this post, we are simply wanting to bind query results to an html view. It seems that there are several templating options to choose from, but I’m unsure of how to go about implementation from within my Ignition project. Is it possible to add one of these 3rd party templating packages within the Ignition Designer and, if so, how? Thanks!

Did you ever get a solution for this?

I never got a reply, but your timing is funny as I was just researching this again a couple of days ago.

Basically, you need to be able to add a custom package to your Gateway, which this post outlines. I chose Mako for templating, but there are many Python templating options available.

Next, take the downloaded package, unzip it and copy it to the pylib directory mentioned in the link above.
Screenshot 2021-02-17 093752

Finally, to test, you can use the script console in the Ignition Designer.

Hope this helps.

*** Update **
Unfortunately, we are running into issues when attempting to import this into a Web Dev Python resource file. It seems to be in line with this post.

2 Likes