说明: MVC5、核心或独立-从ViewModels生成丰富的HTML5表单,或以编程方式构建它们 (MVC5, Core or standalone - Generate rich HTML5 forms from your ViewModels, or build them programatically)
# FormFactory - dynamic HTML form engine
Visit http://formfactoryaspmvc.azurewebsites.net/ for live documentation and to see what FormFactory can do!
# Installation
## For ASP.NET MVC 5
`install-package FormFactory`
`install-package FormFactory.AspMvc`
`install-package EmbeddedResourceVirtualPathProvider *` (or you can install FormFactory.Templates if you don't want to use the EmbeddedResourceVirtualPathProvider)
## For ASP.NET MVC Core
`install-package FormFactory`
`install-package FormFactory.AspNetCore`
configure core to serve embedded files - see [startup.cs](https://github.com/mcintyre321/FormFactory/blob/master/FormFactory.AspNetCore.Example/Startup.cs#L36) lines 36 and 60
## For both
Add the assets to your page
``
``
# How to use it
Inside an cshtml file: `@FF.PropertiesFor(someObject).Render(Html);`
`.PropertiesFor(someObject)` will reflect over the `someObject` and create an enumerable of `PropertyVm` objects, and `.Render(Html)` will render each object out the page
See the documentation site for how to mark up your viewmodel