Octoprint uses Jinja2 a central object called the template Environment. In OctoPrint Jinja2 environment is this line in control.jinja2.
input type="number" style="width: 153px" data-bind="slider: {min: 50, max: 150, step: 1, value: feedRate, tooltip: 'hide'}"
I would like to know if I changed it to this, would it still work only sliding between 30 and 130.
input type="number" style="width: 153px" data-bind="slider: {min: 30, max: 130, step: 1, value: feedRate, tooltip: 'hide'}"
Or is there more to the Jinja template environment than just changing a line in the template.
I Found this.
To load a template from this environment you just have to call the get_template(Feed rate) method which then returns the loaded Template:
To render it with some variables, just call the print template.render(value: feedRate) method:
Can someone tell me if I am on the rite track.
Edited 2 time(s). Last edit at 01/15/2018 06:15PM by Roberts_Clif.