jonjamz / blaze-forms

Dead easy reactive forms with validation (Meteor).
https://atmospherejs.com/templates/forms
MIT License
113 stars 11 forks source link

Feature request: form block argument names #29

Open steph643 opened 9 years ago

steph643 commented 9 years ago

This request has been brought up in https://github.com/meteortemplates/forms/issues/24 and makes sense only if you decide to keep the three distinct arguments of a form block.

I suggest renaming form block arguments from data, action and schema to formData, formAction and formSchema. This would allow to distinguish between user-defined and package arguments.

Example in my code (before/after):

<template name="editProfile">
    {{#bootstrapModal title=th_modalTitle schema=th_schema data=projectUser action=th_submitFunction}}
        ...
    {{/bootstrapModal}}
</template>
<template name="editProfile">
    {{#bootstrapModal title=th_modalTitle formSchema=th_schema formData=projectUser formAction=th_submitFunction}}
        ...
    {{/bootstrapModal}}
</template>