Open steph643 opened 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.
data
action
schema
formData
formAction
formSchema
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>
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
andschema
toformData
,formAction
andformSchema
. This would allow to distinguish between user-defined and package arguments.Example in my code (before/after):