Jeff-Lewis / nhaml

Automatically exported from code.google.com/p/nhaml
0 stars 0 forks source link

Parametrised partials #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A new feature to allow parametrised syntax for partials. Example:
_ TextBox("FirstName", "Given Name)
_ TextBox("LastName", "Family Name)

Currently this can be workarounded using suntax:
- string name, desc
- name = "FirstName"; desc = "Given Name";
_ TextBox
- name = "LastName"; desc = "Family Name";
_ TextBox

The workaround for it works but is not very clear and can easily have name
clutches.

Original issue reported on code.google.com by dna...@gmail.com on 20 Jul 2009 at 1:17