![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Client::UI::Source - load content from disk and output it. DESCRIPTIONThe path to the content files is created from the predefined source path plus the realm name. If you want to reuse content for multiple realms, create a folder _global which is always checked if there is no dedicated folder for the current realm. The basename of the file must be passed as parameter file in the query, the extension is added by the class. Note that file names are sanitzed and must not contain characters other then a-zA-Z0-9_- init_htmlLoad a file from disk that contains HTML. The content of the file is rendered as is into a single text section, the page level is left empty. The source file must end on .html. init_jsonLoad a file from disk that contains JSON. The content is send "as is" to the client, its up to you to make sure that the ui can handle it! The source file must end on .json.
|