commit a80e4b65458af87a65fa5b75664c8ed6850c59d4 from: Omar Polo date: Mon Sep 19 14:34:16 2022 UTC add the template for real commit - df2db2149a21ac230e2961435f2b3011bae12d41 commit + a80e4b65458af87a65fa5b75664c8ed6850c59d4 blob - /dev/null blob + 88324f7fc93c64ddf5f2bcbc9237c3ad5bee2954 (mode 644) --- /dev/null +++ fragments.tmpl @@ -0,0 +1,76 @@ +{! +/* + * Copyright (c) 2022 Omar Polo + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +#include + +#include +#include + +#include +#include +#include + +#include "galileo.h" + +!} + +{{ define tp_head(struct template *tp, const char *lang, + const char *stylesheet) }} + + + + + {{ if *stylesheet != '\0' }} + + {{ end }} + + +{{ end }} + +{{ define tp_foot(struct template *tp) }} + {! struct client *clt = tp->tp_arg; !} + {! struct proxy_config *pc = clt->clt_pc; !} + {! const char *host = pc->proxy_name; !} + {! const char *path = clt->clt_path_info; !} + + + + +{{ end }} + +{{ define tp_figure(struct template *tp, const char *url, + const char *label) }} +
+ + + +
+ {{ label }} +
+
+{{ end }}