I'm in the very same situation. I haven't found any truly satisfying
solution yet, but have developed a few habits and tricks to make the
situation viable.
- My designer puts the templates in a different directory than
webapp. We only modify these templates, because there is some
automatic additional processing applied to them and the result is
copied to webapp.
- I have a shell script, invoked automatically by sbt, that
translates all the relative links in html (images, css, ...) made by
my designer to absolute links and copies the result to webapp. I'm not
sure if dreamweaver could do this for me.. Maybe I'll rewrite it to
scala somewhere in the future and use real xml handling instead of
just sed, but it works "good enough" for now. It would also be handy
to move the contents of <head> to <head_merge> at this stage, but I
have told my designer how to do it manually so for now he does it
every time just before commit.
- I try to have it unit tested that all the css binds I define in the
code have a corresponging placeholder tag in the html. This is
probably the most crucial point, because when these tests pass, the
corresponding html files have probably been parsed correctly, and also
I know that nothing was accidentaly deleted or forgotten.
- When something is wrong, the first thing I do is I manually repair
the suspicious xml file so that it passes through xmllint (http://
xmlsoft.org/xmllint.html). That usually helps.
- When everything works, I commit the result and my designer starts
working again on the fresh files.
So, all in all it's just a bunch of ad-hoc steps and manual repairs.
It is surely less then optimal, and I hope that as I learn more Scala
and Lift I will improve the process, but it is good enough so that we
can actually use DW to do the html design.
Hope that helps,
Tomas Dvorak