1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 15:44:10 +00:00
Commit graph

18 commits

Author SHA1 Message Date
renerocksai
8d187310c7 harmonize callback function error handling, zap logging; doc updates 2025-04-01 16:30:24 +02:00
Rene Schallner
3aaa7fcc24 removed Self and @This() as much as possible 2025-03-21 18:57:33 +01:00
Rene Schallner
5808a02466
fix mustache.zig for current zig master (0.14.x) 2025-03-06 13:42:40 +01:00
Rene Schallner
e9fa568751
update to zig master 2025-03-06 13:42:40 +01:00
Thom Dickson
ee94128c7a
rename MustacheLoadArgs to LoadArgs 2024-07-14 15:57:43 -04:00
Thom Dickson
573b27b9d8
include BuildResult in public Mustache API 2024-07-14 00:09:20 -04:00
Rene Schallner
61fbbe8b08 Refactored request, auth, endpoint: - zap.Request : refactored into its own file, along with supporting types and functions (e.g. http params related) - added setContentTypeFromFilename thx @hauleth. - zap.Auth : zap.Auth.Basic, zap.Auth.BearerSingle, ... - zap.Endpoint : zap.Endpoint, zap.Endpoint.Authenticating 2024-01-10 15:13:25 +01:00
Brook Jeynes
8dfdfdb02c - Updated tests (all passing) - Resolved init() comment stating an error occured if nothing was passed in. - Replaced error at an unreachable location in init() to unreachable - Made many members private 2024-01-07 22:22:37 +01:00
Brook Jeynes
9c19038082 Updated mustache.zig to be more Zig like - mustache.zig now returns a Mustache struct. This allows functions to be called on the mustache instance, e.g. zap.mustacheFree(mustache) -> mustache.free(). - Updated mustache example. - Added doc strings to majority of mustache functions. 2024-01-07 22:22:37 +01:00
Rene Schallner
877bd0eea2 refactored and simplified Mustache interface 2023-09-13 13:43:33 +02:00
sadbeast
8f5aa17109 Add MustacheLoad to support loading from file
According to the facil.io docs
(http://facil.io/0.7.x/fiobj_mustache#fiobj_mustache_new):

> By setting the filename argument even when the data argument exists,
> it will allow path resolution for partial templates. Otherwise, there
> is no way to know where to find the partial templates.

This will allow partial templates to work.

However, this also introduces a breaking change to the existing
MustacheNew function. This change makes it mirror the C version where it
accepts a MustacheLoadArgs struct instead of just the data.  That's also
a handy method to have, so I renamed that to MustacheData...maybe
there's a better name?
2023-09-13 13:22:23 +02:00
Ed Yu
5611026479 Update builtin functions due to zig changes 2023-06-21 14:53:37 -07:00
Rene Schallner
86f44ac45b fixed MustacheBuild mem leak 2023-03-10 21:16:15 +01:00
Rene Schallner
cd48038ae6 got rid of cImport 2023-02-27 13:33:19 +01:00
Rene Schallner
21c4fa12d3 mustache cleanup 2023-02-27 02:15:29 +01:00
Rene Schallner
9557bebf0b mustache rendering works - cleanup needed 2023-02-27 00:56:29 +01:00
Rene Schallner
8273b56f2f mustache progress 2023-02-26 16:17:54 +01:00
Rene Schallner
087b000745 mustache progress 2023-02-15 16:55:07 +01:00