Hello!

I'm trying to write myself some (.NET MVC style) HTML helper functions, something like this:

- input(string type, string id, string label, string name /* ... */)
    input(id="#{id}", name="#{name}" /* ... */)

What I want to do is generate the IDs from a passed in variable, let's say from its fully qualified name or the .stringof property.

I tried this:

- input(alias M)(string type /* ... */)
    input(id="#{M.stringof}", type="#{type}", value="#{M}" /* and so on */)

and I get an error saying "cannot use local 'varname' to non-global template".

Is something like this possible some other way? I really don't want to pass more parameters than absolutely necessary.

Thanks!