pyfcstm.render
Rendering utilities for the pyfcstm.render package.
This module exposes the public rendering interfaces used throughout the package. It re-exports the primary environment setup function, expression rendering helpers, and the state machine code renderer to provide a convenient import surface.
The module contains the following main components:
create_env()- Create a configured Jinja2 environmentrender_expr_node()- High-level expression rendering helperfn_expr_render()- Low-level expression rendering implementationcreate_expr_render_template()- Template dictionary builder for expression renderingStateMachineCodeRenderer- State machine code generation renderer
Example:
>>> from pyfcstm.render import create_env, render_expr_node
>>> env = create_env()
>>> render_expr_node(1 + 1, lang_style='python')
'2'
Note
This module is a thin re-export layer. Refer to the corresponding submodules for detailed behavior and configuration options.