Arham Jain

Results 65 comments of Arham Jain

More generically, it seems like you cannot declare/use any templates that take in a block: ```nim #template wrap(body: untyped): untyped = #body #end #wrap: #echo 3 #end ``` gives `Error:...

If the proc has several statements, then you get an invalid indentation error. Poor example on my part. On Mon, Jul 14, 2025, 11:37 PM Andreas Rumpf ***@***.***> wrote: >...

```nim #? stdtmpl #let a = proc () = # echo "hi" #a() ``` Does not compile, with `Error: invalid indentation`

Workaround after inspecting https://github.com/nim-lang/Nim/blob/79ddb7d89e4320b448c35b5936ce150706bbf210/compiler/filter_tmpl.nim#L92.: ```nim #block: wrapper: hello there #end ```

Just to add one datapoint here - I was trying to add a form POST in an action within a menu, and realized that I couldn't nest `button` tags to...