Commit Graph

88 Commits

Author SHA1 Message Date
Elara bb9b6c8128 Add NilToZero option 2024-03-20 14:31:43 -07:00
Elara e20fedbafc Run generator 2024-03-12 20:33:03 -07:00
Elara b8d3314ada Add support for maps and arrays 2024-03-07 14:06:59 -08:00
Elara b4bc463326 Don't escape JSON data as HTML 2024-03-01 23:25:29 +00:00
Elara 314b0af456 Rename static_tag.go to fs_tag.go 2024-02-28 19:10:56 -08:00
Elara 094c48c4d1 Add FSTag 2024-02-28 17:23:31 -08:00
Elara c28df761d1 Add a few new default functions 2024-02-27 21:43:35 -08:00
Elara ea7b9f8da9 Add tests for negative indices 2024-02-23 22:15:43 -08:00
Elara 110f050c1c Fix field check for method calls 2024-02-23 22:13:23 -08:00
Elara 0040828d2d Allow negative indices 2024-02-23 22:06:34 -08:00
Elara ed568f81bf Don't try to dereference values before calling methods 2024-02-21 22:55:17 -08:00
Elara e810247f13 Add the ability to ignore missing macros/templates in macro and include tags 2024-02-20 12:10:23 -08:00
Elara d91eef09bf Add index to map iteration 2024-02-20 12:07:39 -08:00
Elara 4501ef63d6 Properly handle nested tag executions when the nested tag has no body 2024-02-17 19:36:40 -08:00
Elara 89f75f1709 Add TestValidateFunc 2024-02-12 11:05:19 -08:00
Elara eacbd633bd Run formatter 2024-02-12 10:53:12 -08:00
Elara 82001061da Handle more function call error cases 2024-02-12 10:51:28 -08:00
Elara 3bafd0ef11 Handle more test cases for field access and method calls 2024-02-11 22:29:31 -08:00
Elara 778071c8c5 Test more invalid cases for indexing 2024-02-11 22:16:58 -08:00
Elara feb0f0db31 Fix nil index handling 2024-02-11 22:11:17 -08:00
Elara d9356a48a5 Add more tests 2024-02-11 19:04:07 -08:00
Elara bdad1299c4 Only dereference pointer values when we output them 2024-02-11 12:09:34 -08:00
Elara a042aaa430 Fix some panics related to nil values 2024-02-10 13:31:27 -08:00
Elara 4154ce5ce7 Automatically dereference field and index pointers 2024-02-08 08:36:02 -08:00
Elara b7669282e3 Move the ignore error question mark to after the pound symbol 2024-02-07 21:42:43 -08:00
Elara 703e55df04 Add the ability to ignore errors in ExprTags 2024-02-07 18:27:21 -08:00
Elara 958a25d559 Simplify variadic function support and add a test for it 2024-01-24 22:33:47 -08:00
Elara 9bf56b50a4 Add support for variadic functions 2024-01-18 23:42:18 -08:00
Elara 25037db86a Remove old GPL header from the PEG file 2024-01-03 02:47:36 +00:00
Elara 745b6c0e5f Add WriteOnSuccess option 2023-12-28 07:19:58 -08:00
Elara 1634724260 Add MustGetTemplate and ExecuteTemplate functions 2023-12-27 19:38:59 -08:00
Elara b6c177c3d2 Regenerate parser 2023-12-22 19:30:07 -08:00
Elara a8023be2e2 Fix else/elif tags for nested if statements 2023-12-22 19:15:56 -08:00
Elara d618e7b0da Fix valueToString for end tags and expressions 2023-12-22 19:00:33 -08:00
Elara 3879e207fc Return an error if we encounter an unknown operator 2023-12-22 15:45:28 -08:00
Elara 4309bcc3b4 Implement != operator in expression evaluator 2023-12-22 15:43:49 -08:00
Elara 687e0a6c36 Fix != operator 2023-12-22 15:41:07 -08:00
Elara 7f9286f5c7 Clarify branch in performWhitespaceMutations 2023-12-21 21:02:53 -08:00
Elara ce71befee8 Add the ability to execute struct field functions 2023-12-21 21:01:15 -08:00
Elara f4307541c4 Add the ability to disable whitespace mutations 2023-12-18 11:59:39 -08:00
Elara da0b1ebb52 Fix tests for new error handling system 2023-12-18 09:21:44 -08:00
Elara a465be6cf8 Switch to MPL-2.0 to allow static linking 2023-12-18 09:16:33 -08:00
Elara 74b4607c63 Update the `len` function's description 2023-12-18 01:01:34 +00:00
Elara 01047706b6 Rewrite error handling logic 2023-12-17 16:55:13 -08:00
Elara ba23bf512c Add FUNDING.yml 2023-12-16 00:14:31 +00:00
Elara f7097ad9ce Remove mention of salixmd until yuin/goldmark#426 is resolved 2023-11-04 10:17:11 -07:00
Elara 6c23c75906 Add some tests 2023-11-03 23:36:41 -07:00
Elara 979e7aa33e Implement in operator for maps 2023-11-03 18:33:41 -07:00
Elara da8391fc37 Update table of contents 2023-11-03 18:28:30 -07:00
Elara 9af02875c3 Use the added logo svg in the README 2023-11-03 23:58:53 +00:00