Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks, DaWolf!
I used to do it that way. There's a lot of html in the code. In the long run, it might be better to move the bulk of the html to a template. You might want to seriously consider something like HTML::Template. I started using it at the beginning of this year and there's no turning back. I've moved out lots of html from the code into the templates, and it makes for a cleaner code and probably an easier maintanence task. What I find difficult and sometimes impossible to achieve is a 100% separation of code and html. But as others have pointed out, it's doable with a clear idea of the program logic. With time and more practice, I might be able to do that. On a different note, I've seen rather huge programs (ikonboard and yabb) with code and html glued together. cheers In reply to Re^2: Code and html separation - always or mostly doable?
by kiat
|
|