Open Source Alternative to Dreamweaver's .LBI?
An anonymous reader asks: "I have recently started using Dreamweaver to manage one of many websites that I work on. One feature that I am growing to love is the ability to use Dreamweaver library files (.LBI). What are Slashdot readers' opinions on this format? Is there something better (read: free and standards-compliant)? I also would like to find something I could use on an open-source platform so that I won't be locked in to using Dreamweaver. What do you use for your sites?"
Correction: "Any real self respecting geek with a loth of time on her/his/its hands managing the egosite or at most a few more sites writes the html and css in the raw."
Code poet, espresso fiend, starter upper.
Real websites use frameworks and CMS, and only use toys like dreamweaver for playing "what if".
Some times you don't have access to server side solutions (home pages on a public server you don' t control for instance). Other times you could do a server side solution, but the processing overhead is unwanted. If you are statically sharing the same bit of HTML on multiple pages why use SSI or PHP?
/. doesn't link to it).
They make the server do the work every single time a user views a page, instead of one time before the page is uploaded to the server.
For the programmers out there, this is analogous to doing something at run-time that could have been done at complie-time.
If you need dynamic behavior, by all means use PHP, but if your pages are static, it is a terrible waste of time. Of course, if your server does not have to deal with much of a load then it doesn't matter (better hope
Makefiles would appear to be part of the solution. Combine that with CVS, CMS, and frameworks, and one can do a great deal. Linux specifically, and OSS in general does thing DIFFERENTLY, not necessarily better or worse, just different. Maybe what we need is more transition documents showing how one would do something in an open source way, as compared to the closed source way. That would go a long way towards dispelling these "OSS is inferior" posts we see all over Slashdot.
My reference to templetes is just Dreamweaver's templates. Yes, there are many ways in which to incorperate your own templates that will work just the way you decribed.
However, sad as it may be, a lot of web developers do not even know what xslt or even css is, let alone use it well. Nor is anyone willing to learn them. I would ventuer that the poster of the article is no different.
At the end of the day, WYSIWYG tools are what win, not hand coding. What ever the tools do to make the final product is fine for web developers, no matter what the means were to get there.
AnamanFan - Trying to find the Truth, one post at a time.
To be totally honest- I try to use vi whenever i can. reasons:
:)
- If you code something in a dreamweaver like app, it tends to add other junk to the code - like ^M at the end of every line, and also messes up any spacing you had.
- The ability to use some of the mapping in vi allows you to make changes to the html much faster (even the use of the . command has made coding groups of things much much quicker than copy and paste, in my opinion)
At first...VI sucked. Now I really dont want to do any programming / html without it. (commands, macros, regex, oh my!!)
Happy html'ing.
This solution works best on design-led, rather than code-led projects; ie websites not webapps, since you'll have to change and prototype the UI more, which is where DW is strong.
Unfortunately I can't at present open source my work, but here's some technical details:
It works pretty well, and its acceptably fast (when I originally wrote it on an 800MHz laptop, pages with 5 lbi includes were served in about 0.2s if they needed to be reparsed, 0.025s from the cache; for JSPs with 'tiles' tags the figures were 12s and 0.02s. ie, you don't lose much speed if you use the cache, and the first view time - important in sales demos - was much quicker than JSP. NB other template engines that don't involve the compiler are similarly fast, eg Velocity. I didn't have to work particularly hard on optimizing it as it very quickly dropped below the level where DB access and network lag dominated again.
In terms of effort, it took one developer (me) about a week over it for the first delivery for DW4; the javascripty bits and changes to the parser after DWMX came out took about 2 more.
Again, its horses for courses. For web
At the end of the day, WYSIWYG tools are what win, not hand coding.
Unfortunately, HTML isn't WYSIWYG. HTML is WYSISYGUTCC (under the current configuration). In my experience, this can be problematic if someone else uses a different browser/fonts/resolution than you do. When you consider this problem, it really makes more sense to know exactly what is going on under the covers.