Commit Graph

81 Commits

Author SHA1 Message Date
6a6d3acd96 Clang format everything. 2024-03-01 11:56:19 +01:00
df4379d766 Added a parameter to HTMLTemplate::process_template_expression_variable() to be able to control when to emit errors if a variable is not set. Now this is used when checking for the first argument for the q template method variants. 2024-02-26 21:58:35 +01:00
aef18dd4f1 Fix 2 off-by-one errors. 2024-02-26 21:31:17 +01:00
6ea807be26 Added a q variant from all template methods. These use their first argument to decide whether to print anything or not. 2024-02-26 21:27:20 +01:00
984465ee0c Finished HTMLTemplate's template substitution implementation. 2024-02-26 18:16:25 +01:00
72c764f74c Also process the last variable in HTMLTemplate::process_template_expression(). 2024-02-26 13:22:54 +01:00
b0a72e933d HTMLTemplate::process_template_expression() initial implementation. 2024-02-26 13:11:31 +01:00
0d2fceecf0 Fix errors in HTMLTemplate::render_template. 2024-02-26 12:02:04 +01:00
d3535ef0ca Strip the expression string before passing it to process_template_expression(). 2024-02-26 11:56:30 +01:00
81c8e4aa75 Removed WebServerRequest parameter from get_and_render_template() in HTMLTemplate. 2024-02-26 11:56:01 +01:00
2fe82c604c Fix binds in HTMLTemplate. 2024-02-26 11:52:13 +01:00
af492fc79e HTMLTemplate template processing part 1. 2024-02-26 11:36:13 +01:00
bf15aa0f87 Don't create empty keys. 2024-02-25 22:34:48 +01:00
0e9a926365 Fixed a few smaller typos. 2024-02-25 22:33:17 +01:00
66e0daf383 Created a built in editor using PROPERTY_HINT_BUTTON-s from HTMLTemplates. 2024-02-25 22:11:17 +01:00
c6c864a683 Hide template_overrides and template_defaults property from the inspector in HTMLTemplate. 2024-02-25 20:43:38 +01:00
ce638a69c1 Now HTMLTemplateDataEditorPlugin will only handle HTMLTemplateDatas, if they are on disk. 2024-02-25 19:25:58 +01:00
87920a4ed7 Initial HTMLTemplate class setup. 2024-02-25 19:15:34 +01:00
5c9996fd58 Added an editor plugin for HTMLTemplateData. Double clicking one in the editor will open the underlying file on the text editor tab (if enabled). 2024-02-25 17:26:28 +01:00
83facbff3b Fix issues with HTMLTemplateData loading and serialization. 2024-02-25 16:33:53 +01:00
08864f0a25 Added an importer for HTMLTemplateData. 2024-02-25 16:23:36 +01:00
eca4475f2d Implemented HTMLTemplateData. 2024-02-25 15:55:42 +01:00
fb005f970e Added HTMLTemplate and HTMLTemplateData classes. 2024-02-25 14:54:50 +01:00
98912a89e8 File copyright header updates pt9. 2023-12-18 00:25:33 +01:00
f058c87868 Backported from godot4: Rework Navigation Avoidance
Rework Navigation Avoidance.
- smix8
a6ac305f96
2023-06-10 20:58:49 +02:00
97f5037c8b Renamed the object() method in HTMLBuilder as it can cause issues with bind generators. 2023-06-01 16:51:08 +02:00
d093365b00 Fix some property names being the same as getters / setters. 2023-06-01 15:42:32 +02:00
23d01a29ce Use the size struct member when parsing markdown in MarkdownRenderer. 2023-03-22 01:43:45 +01:00
0ed384eb1c Fix handling utf-8 in the MarkdownRenderer. 2023-03-21 21:22:36 +01:00
2591231bbe Fixed more cases of using String.size() instead of String.length(). 2023-03-20 21:24:51 +01:00
213f393293 Fix typos with codespell. 2022-12-22 19:51:25 +01:00
a19be9b170 Small cleanups. 2022-12-18 17:00:11 +01:00
7eed422442 Also added tag() and ctag() helpers to the c++ side HTMLBuilder, and smaller cleanups. 2022-12-18 16:53:23 +01:00
f9ef920ec5 Added new tag() and ctag() universal tag helpers to the HTMLBuilder binder class. 2022-12-18 16:48:19 +01:00
0cfc5ed610 Added enctype and multipart form helpers to HTMLTag. 2022-08-26 12:02:57 +02:00
1f8581edd8 Added rows and cols to HTMLTag. 2022-08-26 11:49:22 +02:00
b8d9139bb1 HTMLParser now properly parses doctype in a case insensitive way. Also improved an error message a bit. 2022-08-20 22:28:08 +02:00
62b0d5572e Use string length() instead of size() as it was intended in HTMLParser, and BBCodeParser. 2022-08-20 21:57:50 +02:00
be16fe23ad Moved the error macros. 2022-08-17 15:14:19 +02:00
220b2db443 Moved String and related classes under a string folder in core. 2022-08-17 14:19:55 +02:00
dc9cc716c7 Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
9555ee56b9 Moved Variant related classes under a variant folder in core. 2022-08-17 13:17:12 +02:00
388b88678e Moved container related classes in core under a new containers directory. 2022-08-17 12:53:49 +02:00
e71e3ed897 Now Vector4, Vector4i, Projection, PoolVector4Array, PoolVector4iArray, are built in variant types. Also reordered the Variant's Type enum, renamed _RID in it to RID, fixed a few smaller issues and removed some very old compat code. 2022-08-16 21:55:56 +02:00
249dd4d661 Updated property hints for variant arrays. 2022-07-30 21:58:40 +02:00
abb875f8a5 Use length() instead of size() for strings in the FormValidators. 2022-07-23 22:07:49 +02:00
caa93f89b0 Uncommented / fixed the methods that take WebServerRequest in HTMLBuilder and it's bind class. 2022-07-22 11:45:12 +02:00
88bc492eb1 Also avoid maybe uninitialized warning. 2022-07-20 00:44:17 +02:00
37fdc4938f Fix shadowed declaration warning in hoedown. 2022-07-20 00:40:49 +02:00
76a0124b88 Implement MarkdownRender's logic. 2022-07-20 00:36:59 +02:00