![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I am experimenting with CSS since 2001. As I moved from frame based sites to CSS sites, I realized that the major drawback of CSS is that you cannot anymore have your header, manu, footer and content panes in different files, but you have to *repeat* them in *each* page you do. If I have to change any common section, I have to apply the change in many different files at the same time. Maintenance is now a real mess. [snip] What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot always do that. |
#12
| |||
| |||
|
|
On Tue, 24 Jan 2006, Jasen Betts wrote: On 2006-01-23, Dario de Judicibus <nospam (AT) nowhere (DOT) com> wrote: What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot always do that. build the files in pieces and use a script to combine them, put the combined files on the server. Consider using "make". Write a Makefile which defines your automated processes to be applied after a source code update, via your processing chain, HTML validation etc., and finally upload to server. Of course, "make" is usually thought of as a tool for software development, but don't let that distract you. There's a bit of a learning curve, but it can result in a flexible and convenient final process. You could define make "targets" like "make check", "make publish" etc. Via the "dependencies", your Makefile will show which published pages "depend" on components which have been updated (as shown by their file's timestamp), and will rebuild only those pages which are affected by the changes, if it's done right. |
#13
| |||
| |||
|
|
You can use a preprocessor, template based authoring systems usually allow inclusion of code fragments, swapping out code blocks is easy with a good quality S&R function, and lastly the aforementioned locally installed scripting solution. |
#14
| |||
| |||
|
|
It occurs to me that that concept is the biggest problem with WYSIWYG editors. Not that they produce bad code but that they stop you from seeing that is code to then be processed. When you see you are writing code to the process for display it is no big deal to have a processing step in the middle make the display file. |
#15
| |||
| |||
|
|
What can I do? Please, do NOT tell me «use PHP, ASP or ColdFusion». I cannot always do that. build the files in pieces and use a script to combine them, put the combined files on the server. |
#16
| |||
| |||
|
|
Consider using "make". Write a Makefile which defines your automated processes to be applied after a source code update, via your processing chain, HTML validation etc., and finally upload to server. |
#17
| |||
| |||
|
|
- Use a html-preprocessor to include menu's etc. before publishing the site. - Use a text editor, or text-tool that can replace text in multiple files. |
#18
| |||
| |||
|
#19
| |||
| |||
|
|
Matt Silberstein wrote: It occurs to me that that concept is the biggest problem with WYSIWYG editors. Not that they produce bad code but that they stop you from seeing that is code to then be processed. When you see you are writing code to the process for display it is no big deal to have a processing step in the middle make the display file. I use Homesite to develop code. I code my pages manually. If I have to use PHP, no problem, but if I have to be totally client-dependent, is a mess. I really do not understand why I cannot use the SRC atttribute to load HTML fragments as follows: p src="/common/copyright.xmlf" / where I use .htmlf for an XHTML fragment (no Doctype, but conformant to XML, that is, no element split). |
#20
| |||
| |||
|
|
Alan J. Flavell wrote: Consider using "make". Write a Makefile which defines your automated processes to be applied after a source code update, via your processing chain, HTML validation etc., and finally upload to server. Well, I do not like nor use code generators, but I *use* visual tools. Visual tools are used for C++ programming too. Using command based stuff is absurd for web development. I need to continuosly switch between edit mode and view mode. |
![]() |
| Thread Tools | |
| Display Modes | |
| |