diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:08:18 +0000 |
commit | 5da14042f70711ea5cf66e034699730335462f66 (patch) | |
tree | 0f6354ccac934ed87a2d555f45be4c831cf92f4a /src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz netdata-5da14042f70711ea5cf66e034699730335462f66.zip |
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt')
-rw-r--r-- | src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt b/src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt new file mode 100644 index 000000000..4b880f311 --- /dev/null +++ b/src/web/server/h2o/libh2o/srcdoc/snippets/directive.mt @@ -0,0 +1,28 @@ +? my $ctx = $main::context; +? my ($content, $args) = @_; +<div id="<?= $args->{name} ?>" class="directive-head"> +? if ($args->{since}) { +<div class="directive-since">since v<?= $args->{since} ?></div> +? } +<h3><a href="<?= $ctx->{filename} ?>#<?= $args->{name} ?>"><code>"<?= $args->{name} ?>"</code></a></h3> +</div> + +<dl class="directive-desc"> +<dt>Description:</dt> +<dd> +<p> +<?= Text::MicroTemplate::encoded_string($args->{desc}) ?> +</p> +<?= $content ?> +</dd> +<dt><a href="configure/syntax_and_structure.html#config_levels">Level</a>:</dt> +<dd><?= join(", ", @{$args->{levels}}) ?></dd> +? if ($args->{default}) { +<dt>Default:</dt> +<dd><code><pre><?= $args->{default} ?></pre></code> +? } +? if ($args->{see_also}) { +<dt>See also:</dt> +<dd><?= $args->{see_also} ?></dd> +? } +</dl> |