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

12 commits

Author SHA1 Message Date
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