I am using a web framework (Grails, similar to Rails) that has abilities to auto-generate a lot of code through scaffolding. As a result, all of my CRUD pages are currently automatically generated, and I even have ability to inject additional HTML code whenever I want to to further customize the content of those pages.
I can control the scaffolding templates and so can wrap any generated fields in its own DIV, or apply styles whenever needed, all through scaffolding.
So if I have an object with name and password fields, I can have my scaffolding generate something like this for "show" page.
<div id="prop.name">Name</div><div id="prop.name.value">John</div>
<div id="prop.password">Password</div><div id="prop.password.value">***</div>
We are about to embark on putting a more real design onto the scaffolded pages, and I am wondering whether it would make sense to just have the designers come up with a basic layout (header, footer, menu, etc), but for the actual layout of my forms and display pages, have the designer style all my DIVs. This way, I can continue to create my pages through scaffolding, allowing me to easily add fields, etc, but without really having to code too much custom UI.
Obviously, there might be a few places where I'd have to adjust my scaffolding to the designs, but the goal is to reuse my scaffolding templates and style them.
Any thoughts / problems with this approach?