1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00
zap/examples
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
..
bindataformpost provided 2 bin files for bindataformpost example 2023-09-13 02:23:33 +02:00
cookies Update to latest facil.io patch (cookie path) 2023-05-30 10:42:51 +02:00
endpoint Endpoint example: /stop endpoint & leak detection 2023-07-03 15:54:26 +02:00
endpoint_auth added endpoint_auth example, fixed doc 2023-04-16 23:53:14 +02:00
hello added errors 2023-03-10 11:43:57 +01:00
hello2 added support for SimpleRequest.getHeader() 2023-04-14 23:32:56 +02:00
hello_json Update to use the new alignCast where the alignOf is not needed anymore 2023-06-26 20:11:34 -07:00
http_params Mega update! SimpleHttpRequest got Parameters! 2023-05-06 02:38:35 +02:00
middleware Update middleware example with direct context 2023-06-21 15:21:42 -07:00
middleware_with_endpoint Revert Context changes in middleware_with_endpoint by fixing middleware MixContexts 2023-06-22 11:57:55 -07:00
mustache Add MustacheLoad to support loading from file 2023-09-13 13:22:23 +02:00
routes added errors 2023-03-10 11:43:57 +01:00
senderror first cut of sendError 2023-05-22 05:17:21 +02:00
sendfile better cache-control example f. sendFile 2023-05-14 00:21:25 +02:00
serve added errors 2023-03-10 11:43:57 +01:00
userpass_session_auth UserPassSessionAuth: ephermal session token 2023-05-24 12:02:53 +02:00
websockets improved websocket chat example 2023-05-07 16:14:28 +02:00