extract func `parseFormTag` from templatefunc.RenderForm
Extracted a func `parseFormTag` that takes a reflect.StructField and returns the different positional parts of the `form` structTag with default values as documented in http://beego.me/docs/mvc/view/view.md#renderform This makes RenderForm shorter and makes it possible to test the parsing separately.
Showing
2 changed files
with
60 additions
and
9 deletions
-
Please register or sign in to post a comment