Hi there
I'm after some suggestions as to how one might best separate form and
content in a normal run-of-the-mill web application. I'm sure whole
bookshelves have been written on this, but I could use some pointers
as to the most helpful roads to investigate.
The situation I'd like to end up with is the ability to split web
development work into two halves - programmers writing back-end logic,
and web designers building the look and feel of web pages.
At the moment, when we develop a web page, we have a web designer mock
up the page using Dreamweaver or whatever, and hand the sample HTML
over to the programmers, who then hardcode it as best they can into
Python/Perl/C++ scripts etc. What would be nice is a situation where
the programmers can write all the back-end logic, and just tell the
graphic designer what URLs he has to call. So, if we do a database
lookup and it returns X rows, we don't have to explicitly write a loop
at the back end generating the right number of HTML TABLE/TD/TR tags
etc. The front end would "understand " that this particular query is
going to return table data, and then format the results according to a
particular layout (CSS ?) as specified by the web designer. Plus
ideally, if the database lookup completely fails, we might not want to
show a table format at all but write out a text message explaining why
it failed.
In summary, we don't want our graphic designer to EVER see a line of
server side code/scripting, and we don't want our programmers to EVER
write a line of HTML or client-side JavaScript. I realise this is
unlikely to be achievable, but as close as possible would be good.
Some technologies which have been touted as handy for this include
ASP.NET code-behinds, Zope page templates, ActiveX controls and DHTML.
Your thoughts on these solutions or alternative suggestions would be
most welcome.
By the way, if I would do better posting this to a different group,
please let me know.
Thanks,
Griff
I'm after some suggestions as to how one might best separate form and
content in a normal run-of-the-mill web application. I'm sure whole
bookshelves have been written on this, but I could use some pointers
as to the most helpful roads to investigate.
The situation I'd like to end up with is the ability to split web
development work into two halves - programmers writing back-end logic,
and web designers building the look and feel of web pages.
At the moment, when we develop a web page, we have a web designer mock
up the page using Dreamweaver or whatever, and hand the sample HTML
over to the programmers, who then hardcode it as best they can into
Python/Perl/C++ scripts etc. What would be nice is a situation where
the programmers can write all the back-end logic, and just tell the
graphic designer what URLs he has to call. So, if we do a database
lookup and it returns X rows, we don't have to explicitly write a loop
at the back end generating the right number of HTML TABLE/TD/TR tags
etc. The front end would "understand " that this particular query is
going to return table data, and then format the results according to a
particular layout (CSS ?) as specified by the web designer. Plus
ideally, if the database lookup completely fails, we might not want to
show a table format at all but write out a text message explaining why
it failed.
In summary, we don't want our graphic designer to EVER see a line of
server side code/scripting, and we don't want our programmers to EVER
write a line of HTML or client-side JavaScript. I realise this is
unlikely to be achievable, but as close as possible would be good.
Some technologies which have been touted as handy for this include
ASP.NET code-behinds, Zope page templates, ActiveX controls and DHTML.
Your thoughts on these solutions or alternative suggestions would be
most welcome.
By the way, if I would do better posting this to a different group,
please let me know.
Thanks,
Griff
Comment