uf.templates#
HTML template generation for uf web interface.
Provides functions to generate the web UI that lists functions and displays RJSF forms for interacting with them.
Functions
|
Generate a simple error page. |
|
Generate HTML page with RJSF forms for functions. |
- uf.templates.generate_error_page(error_message, status_code=500)[source]#
Generate a simple error page.
- uf.templates.generate_index_html(function_specs, *, page_title='Function Interface', custom_css=None, rjsf_theme='default', base_url='')[source]#
Generate HTML page with RJSF forms for functions.
Creates a single-page application with:
Function list/navigation sidebar
RJSF form for selected function
Result display area
Uses React and RJSF from CDN (no build step required)
- Parameters:
- Return type:
- Returns:
Complete HTML string for the web interface