diff --git a/modules/web/doc_classes/StaticWebPage.xml b/modules/web/doc_classes/StaticWebPage.xml index fb3dfd81d..116008be0 100644 --- a/modules/web/doc_classes/StaticWebPage.xml +++ b/modules/web/doc_classes/StaticWebPage.xml @@ -1,8 +1,12 @@ + Sends what's in it's [code]data[/code] property when it handles a [WebServerRequest], and what's in it's [code]preview_data[/code] property when [code]render_preview()[/code] is called. + The StaticPage WebNode just renders what's set into it's [code]data[/code] property. + If it's [code]should_render_menu[/code] property is set to true (default) then it will also call [code]render_menu()[/code]. + Also supports loading data from files through the [code]load_file()[/code] helper method, and can also render markdown files to HTML. @@ -11,33 +15,40 @@ + Loads a file, and processes it if it can. (if it's a markdown file, it will get rendered as html.) + Sets the contentds of the given file to the [code]data[/code] property + Loads and processes a markdown file. + Process the given [String] as a markdown, and set it to the [code]data[/code] property. + The data that will be sent back to a request. + The preview that can be used by other WebNodes if you set it. + Whether to call [code]render_menu()[/code] when it handles a request. diff --git a/modules/web/doc_classes/StaticWebPageFile.xml b/modules/web/doc_classes/StaticWebPageFile.xml index 31f61863b..268d7c464 100644 --- a/modules/web/doc_classes/StaticWebPageFile.xml +++ b/modules/web/doc_classes/StaticWebPageFile.xml @@ -1,8 +1,10 @@ + A [StaticWebPage] that loads a file to [StaticWebPage]'s [code]data[/code] proeprty when entering the [SceneTree]. + A [StaticWebPage] that loads a file to [StaticWebPage]'s [code]data[/code] proeprty when entering the [SceneTree]. @@ -10,13 +12,16 @@ + Load the file manually. + The path to the file. + Whenther to try to process the file. (Renders markdown.) diff --git a/modules/web/doc_classes/StaticWebPageFolderFiles.xml b/modules/web/doc_classes/StaticWebPageFolderFiles.xml index b6dd17e6b..21dfe7169 100644 --- a/modules/web/doc_classes/StaticWebPageFolderFiles.xml +++ b/modules/web/doc_classes/StaticWebPageFolderFiles.xml @@ -1,8 +1,10 @@ + A [StaticWebPage] that loads all files from the given folder to [StaticWebPage]'s [code]data[/code] proeprty when entering the [SceneTree]. + A [StaticWebPage] that loads all files from the given folder to [StaticWebPage]'s [code]data[/code] proeprty when entering the [SceneTree]. @@ -11,18 +13,22 @@ + Appends to [StaticWebPage]'s [code]data[/code] property. + Load the files manually. + The path to the files. + Whenther to try to process the files. (Renders markdown.)