> is it possible to create one with the help of templates ? If so, then please 
> give me some direction.

See if [this example from the 
manual](https://nim-lang.org/docs/manual.html#templates-passing-a-code-block-to-a-template)
 helps you.

Reply via email to