generate.static
Static data are fixed within a configuration (independent of state). Here’s an example of a static section (within the generate section).
"static": {
"_type": "scale.olm.generate.static:pass_through",
"addnux": 2,
"xslib": "v7-56",
"pitch": 1.26,
"fuelr": 0.4095,
"cladr": 0.4750
}
There’s no processing applied and these variables are directly available for use in template files.
pass_through
Specified with "_type": "scale.olm.generate.static:pass_through" in config.olm.json.
Example input in config.olm.json/generate/static
{
"_type": "scale.olm.generate.static:pass_through",
"addnux": 2,
"xslib": "v7.1"
}
Args passed to Python function: scale.olm.generate.static.pass_through
{
"_type": "scale.olm.generate.static:pass_through",
"addnux": 2,
"xslib": "v7.1"
}
Data available in template: static
{
"addnux": 2,
"xslib": "v7.1"
}
See also: scale.olm.generate.static.pass_through
type |
object |
|
properties |
||
|
Olm Redirect Type |
|
const |
scale.olm.generate.static:pass_through |
|