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

14 commits

Author SHA1 Message Date
renerocksai
8d187310c7 harmonize callback function error handling, zap logging; doc updates 2025-04-01 16:30:24 +02:00
renerocksai
4c59132a08
added header to example main source files showing how to build & run 2025-03-30 19:40:08 +02:00
renerocksai
fcce4517de
introduced error union to request fn return type 2025-03-16 20:16:14 +01:00
renerocksai
8892cae7df API cleanup #1 --------------
- EndpointListener.register() // was: addEndpoint
- no more Simple
- getEndpoint -> endpoint()
2024-01-09 11:28:05 +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
Rene Schallner
1fcb11f03a "fixed" release build errors in mustache example 2023-03-10 11:58:51 +01:00
Rene Schallner
615d90b8f4 added errors 2023-03-10 11:43:57 +01:00
Rene Schallner
503554d649 added facilio logging functions 2023-03-08 15:08:15 +01:00
Rene Schallner
c42e5095d8 added preliminary zap debug logging 2023-03-04 18:37:55 +01:00
Rene Schallner
7c03a16245 mustache example cleanup 2023-02-27 02:26:00 +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