vdjagilev / nmap-formatter

A tool that allows you to convert NMAP results to html, csv, json, markdown, graphviz (dot), sqlite, excel and d2-lang. Simply put it's nmap converter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom variables for custom templates

vdjagilev opened this issue · comments

Add a possibility to pass custom variables for custom templates.

Example:

--x-opt "foo=${bar}"

Then this value can be used in a custom template like this:

Some custom variables:

<ul>
  <li><b>Foo value:</b> {{.custom.foo}}</li>
</ul>

This could be used in automated environments (pipelines?) to pass some values to the custom templates.

Can be implemented only after #23