Slashdot Mirror


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?"

69 comments

  1. Dreamweaver is a good fit by trompete · · Score: 2, Informative

    I have a tool for each part of the process. For design, I use FrontPage, for development AND design, I use Dreamweaver. For straight-up development, I use PHPEdit. Just use the right tool for the right job.

    1. Re:Dreamweaver is a good fit by Tumbleweed · · Score: 4, Funny

      > For design, I use FrontPage, ...
      > Just use the right tool for the right job.

      Yikes.

    2. Re:Dreamweaver is a good fit by Anonymous Coward · · Score: 1, Funny

      "For design, I use FrontPage..."

      <div>
      <table border="0" bgcolor=#ffffff>
      <tr>
      <td>
      <font face="Arial" size="10">
      <blockquote>
      <div>I</div><div>use</di v><div>Frontpage</div><div >myself,</div>
      <div>and</div><div>have</div><div> had</div><div>gr eat</div><div>results.</div>
      </blockquote>
      </fon t>
      </td>
      </tr>
      </table>
      </div>

  2. 3 things by Apreche · · Score: 3, Informative

    I use 3 things to make websites. Well, technically four, but really 3. First I use nedit. It's a text editor, my text editor of choice. Any text editor will do. Second I use nvu. nvu is like Mozilla Composer, but it has been "Firefoxized". Third I use firefox itself, to view the pages. The technical fourth thing is a firefox extension that lest me edit css live to make sure its perfect. Any real self respecting geek writes the html and css in the raw. It's the only way.

    --
    The GeekNights podcast is going strong. Listen!
    1. Re:3 things by pbox · · Score: 2, Insightful

      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.
    2. Re:3 things by xoran99 · · Score: 1, Funny
      Any real self respecting geek writes the html and css in the raw.

      WR0NGZ0R3D!!! a|\|y 31337 h4x04 r3li$h3s the chance to use fr0ntp4ge and put lots of c4ap in h1s c0d3 &nbsp &nbsp &nbsp...

      --

      Karma: Bad (mostly due to all those "In Soviet Russia" jokes)

    3. Re:3 things by itsari · · Score: 5, Interesting

      Any real self respecting geek writes the html and css in the raw. It's the only way.

      Not only that, but it makes for better pages. The code is not bloated, and the layout is more optimized. Hand-coding websites also gives you a chance to find new ways of doing things instead of the same old tricks.

      My design process includes Fireworks, also by Macromedia. My first step is drawing the page layout with all the images and menus. It's the easiest way to play around and find what looks just right. My next step is re-creating the page using minimal images, css, and xhtml. After it looks like the original images, I optimize the code and make sure the layout works in ALL browsers. I might also add in a step that includes javascript or server-side code if its necessary. This design process has served me very well.

      As for the question, I've used Dreamweaver, but never liked the extra features. I use it as a file manager and syntax highlighter when I'm on Windows, that about all (except FTP). I find the best way to manage your site is to have it manageable by design. Descriptive file names, good directory structure, and organization. That way you wont be locked into any specific solution.

    4. Re:3 things by enrico_suave · · Score: 1

      what's that firefox extension to edit css like that?

      e.

      --
      Build Your Own PVR/HTPC news, reviews, &
    5. Re:3 things by Laverne · · Score: 1

      Try this link for some handy bookmarklets.

    6. Re:3 things by Kick+the+Donkey · · Score: 0

      Actually, I've found that people waste more time screwing with some WYSIWYG edtior, than they would if they'd just learn HTML. Personally, I use Crimson Editor and FireFox in my development. And since CE has a 'Save to FTP' feature, I don't even need a seperate client for that.

      --
      /. is a bunch of nerds at a million typewriters. It's not a political conspiracy determined to undermine your beliefs.
    7. Re:3 things by MadChicken · · Score: 4, Interesting

      Correction: "Any web developer worth his salt writes raw HTML and CSS"

      CSS is the only way to keep your sanity when you're writing a lot of pages. And the best way to keep pages clean and maintainable is to do it in a plain text editor. (A smart one though, like jEdit)

      Or do you have too much time on your hands to put accursed FONT tags around every morsel of the web page?

      And yes, I do this professionally.

      P.S. ...I couldn't say "in the raw" with a straight face. And may Eric forgive me for using bold tags.

      --
      SYS 64738 NO CARRIER
    8. Re:3 things by MadChicken · · Score: 3, Informative

      EditCSS is what you're looking for. Awesome tool.

      While you're there you definitely want Web Developer an UNBELIEVABLY useful tool for diagnosing complex pages.

      --
      SYS 64738 NO CARRIER
    9. Re:3 things by Chasuk · · Score: 1

      I'm not thick, really, but I can't figure out how to use the CSS Editor Tool in Nvu, and I've struggled with it for hours, and Googled for instructions.

      Would you mind providing a little guidance, or at least point me towards some relevant links?

      Your help would me much appreciated.

      Cheers!

    10. Re:3 things by Anonymous Coward · · Score: 0

      Bullshit. It's simply not possible to develop a high-quality website when your HTML and CSS is being generated by a program like Dreamweaver. Sure, lots of kid Frontpage jockeys can get away with charging a few hundred dollars for a website for their uncle, in the name of "professionals", but anybody with a clue about web development simply wouldn't go near a code generator. It's like one of those "program without learning programming!" tools that used to be popular with kids.

    11. Re:3 things by I_Love_Pocky! · · Score: 2, Interesting

      Ha.

      It seems like you are assuming that the only reason some one would use a WYSIWYG editor is because they don't know HTML. This is completely off base. Any decent webdesigner needs to at least have a working knowledge of HTML regardless of the tool they use to create/generate it, simply from the standpoint that they have to know what is possible with HTML.

      Reading all of these posts really cracks me up. I have seen so many self-righteous posters talking about "hand coding" HTML as if it was some kind of difficult task. Here's a bit of information for you all: HTML is easy, and knowing how to "code" it hardly makes you the hard core individual you see yourself as.

      The real challenge in Webdesign is the design aspect of it. What someone uses to implement that design shouldn't even be an issue. Does it hurt your feelings that perhaps they can work faster than you using a WYSIWYG?

      On a side note, I'm not really attacking the parent post here, but I had to reply to one of them.

      Also note that I don't use WYSIWYGs myself, but that is just because when I do webdesign (a rare event these days) I usually am working on dynamic websites (usually in PHP). If I was writing a static page I sure wouldn't waste my time to "hand code" HTML just so I could feel cool. That is like writing all my documents in postscript just to be hard core. There is no benefit, just more work.

    12. Re:3 things by pbox · · Score: 1

      Well put. This is really what I was trying to point out with my parent post.

      I love pocky too.

      --
      Code poet, espresso fiend, starter upper.
    13. Re:3 things by the-build-chicken · · Score: 1

      scratch HTML

      replace with XML+XSLT+CSS :)

    14. Re:3 things by MadChicken · · Score: 1

      Too true, too true...!

      Thanks for the reminder, we poultry need to stick together. ...heh heh...scratch...

      --
      SYS 64738 NO CARRIER
    15. Re:3 things by cloudmaster · · Score: 1

      If you wrote the HTML *properly*, you could generally use templates or something similar to generate the rest of the site. "But my giant site has an inconsistent layout that doesn't lend itself to templating." Well, that site probably creates a poor user experience, and probably could benefit from a redesign.

      BTW, not only do I maintain some very large sites using only gvim, but I also happen to work for a web development company wherin all of the dedicated site coders work in text editors. Somehow, we manage to get by very well without wysiwg except possibly for the initial page designs - and those are graphics people, not HTML people.

    16. Re:3 things by cloudmaster · · Score: 1

      Reading all of these posts really cracks me up. I have seen so many self-righteous posters talking about "hand coding" HTML as if it was some kind of difficult task. Here's a bit of information for you all: HTML is easy, and knowing how to "code" it hardly makes you the hard core individual you see yourself as.

      Wait, so hand coding is easy, but it's "like writing all my documents in postscript just to be hard core"? Which is it, something that's hard-core and therefore a gratuitous waste of time, or simply another more controllable development methodology?

      Personally, I feel cooler writing Perl than assembler, but then, that's just me. A wysiwyg editor leaves the page design up to someone else, which is fine as long as "someone else" knows what browsers I'm targeting and is just as concerned with cross-browser compatability as I am. Unfortunately, most wysywig editor developers are concerned with IE. That might be fine if you're the only one working on the page, or if everyone wholl ever maintain the site is using the same editor - *and* you only care about IE's market share - but, just like commented code v/s uncommented code, maintaining the site later on is much more difficult if you're locked in to some GUI's design decisions (which generally don't include nicely indented HTML that's whitespace independent).

      I dunno, I guess I'm offended by the comment's short-sighted assumption that I use a text editor just to get chicks. I use it because it works over ssh and it gives me absolute control. It's the best tool for *my* job.

    17. Re:3 things by Anonymous Coward · · Score: 0

      Would an avid fitness expert ditch their car and run to work, store, gym etc just to be called a self respecting fitness expert? You could train a monkey html and css. It takes little intelligence to do this stuff, why in the hell would any "intelligent" person choose to do this by hand when it can be generated in seconds using wysiwyg? Sure most wysiwyg editors suck but there are exceptions. Dreamweaver will generate fairly effiecient html and it also has this sweet feature called "code view" for those intelligent enough to identify situations where the editor didn't generate the best code, you can then manually change this code without having to write the entire page by hand. Why not focus more of your time on "programming" rather than html? In the meantime you can give yourself a pat on the back for proving your geekness through your profiecient manual html coding...what a joke.

    18. Re:3 things by include($dysmas) · · Score: 1

      i use Quanta striaght through. My hat really has to go off to the development team, im yet to find a situation where its best to use a wysiwyg thingy, most of the time its what you dont see that really worries me...

      last time i used dreamweaver i spent more time arguing with the interface than actually being productive, similar to my brief experience with windows xp and its associated programs...

  3. Can you be any more vague? by FattMattP · · Score: 1

    Maybe we could tell you about alternatives if you'd detail exactly what it is that LBI files do. Saying that it's a library file doesn't mean much. Does that mean it's a DLL? What exactly is the problem that you are trying to solve?

    --
    Prevent email address forgery. Publish SPF records for y
    1. Re:Can you be any more vague? by cloudless.net · · Score: 4, Informative

      Dreamweaver LBI are pieces of HTML code that can be shared among multiple web pages. It has similar effect as SSI but the code insertion is done on the client side before uploading to the web server.

    2. Re:Can you be any more vague? by the+morgawr · · Score: 1
      Why not just use PHP(or perl or etc) and make files?

      The PHP has include capabilities and other processing ability. The make files should be able to run PHP and generate the resultant pages.

      --
      The policy of the United States is worse than bad---it is insane. -- Ludwig von Mises, Economic Policy(1959)
    3. Re:Can you be any more vague? by I+confirm+I'm+not+a · · Score: 1

      Two (possible) reasons:

      • Might not have access to a PHP server, or sufficient access to the server to install PHP (or similar)
      • There's a (admittedly minor) performance hit using server-side includes; if you can pre-generate the HTML in advance (which effectively is what Dreamweaver does with library items) you avoid this.

      I've got to admit though, my first thought was "server side includes".

      --
      This is where the serious fun begins.
    4. Re:Can you be any more vague? by the+morgawr · · Score: 1
      Maybe I wasn't clear. You can install PHP on your personal machine and use make files to run it on the .php files giving you .html files that have the content generated at make time instead of at download time. That sounds like all the lbi files do anyway.

      --
      The policy of the United States is worse than bad---it is insane. -- Ludwig von Mises, Economic Policy(1959)
    5. Re:Can you be any more vague? by xybe · · Score: 2, Interesting

      I just recently did this when my brother asked for a site, he was running for president of a vasrity association, I used a basic bluerobot.com 3 column css design and did the whole thing in raw html and css. It drove me nuts when he requested extra pages and I had to modify every page's navigation bar. What I did was install php cg in my WinXP machine and use simple includes, in the form

      htmlcode blah blah blah

      <?php
      require(navbar.inc.php);
      ?>
      bl ah blah blah

      If you want your site to be XHTML you will have to disable the short tags in the php.ini configuration file (I don'remember exactly how at the moment), otherwise the php parser will go nut with the xml tags.

      the site's draft will be up for a few days at this very linkrottable place. It was a quick and dirty job but it looked quite nice and most of the pages were XHTML 1.1 standards compliant. (my brother lost the election though)

      So, in conclusion, if you have a win machine get yourself a copy of html-kit, and topstyle (free beer both) and install php cgi but don't configure it for any server, create php files and run the command line: c:\path\to\php.exe c:\path\to\phpfile.php > c:\path\to\resultingfile.html. I had a batch file that did this for all the files in the site. Then upload the html files. All the php parsing is done on your computer so you will be uploading plain html.

      good luck

    6. Re:Can you be any more vague? by Anonymous Coward · · Score: 1, Interesting

      If you want your site to be XHTML you will have to disable the short tags in the php.ini configuration file (I don'remember exactly how at the moment), otherwise the php parser will go nut with the xml tags.

      Nope. The only thing PHP doesn't like about XHTML is processing instructions and the XML prolog. If you include either of these in an XHTML page, you aren't following Appendix C of XHTML 1.0 and you are not allowed to serve it as text/html. If you don't serve it as text/html, Internet Explorer won't understand it.

      So basically, if you are having trouble with PHP short tags on a mainstream website, you are already in violation of at least one standard.

      It was a quick and dirty job but it looked quite nice and most of the pages were XHTML 1.1 standards compliant.

      XHTML 1.1 is not eligible for being served as text/html (you should use something like application/xhtml+xml instead). It sounds like you are breaking the rules of RFC 2854.

  4. Server-side Includes by cloudless.net · · Score: 4, Informative

    Just use SSI if your web server supports it (most do). No need to "update all pages" like you do with LBI.

  5. :syntax by nitrocloud · · Score: 0

    VIM for life, syntax coloring makes everything easy enough for anyone who can do some scripting... GOD SAVE VIM.

    --
    Karma: Good, or bust!
    1. Re::syntax by reinard · · Score: 2, Interesting

      PRAISE VIM!

      Here is my favourite (partial) .vimrc config for editing html/php:

      set nocp
      set backspace=2
      set history=200
      set ruler
      set splitbelow
      set undolevels=100
      set visualbell
      set mouse=a
      set showbreak=+\
      set foldmethod=marker

      " enable syntax highlighting
      :syntax on

      " set the fg colors for some types of words
      :hi comment ctermfg=2 cterm=NONE " dark green
      :hi constant ctermfg=2 cterm=bold " light green
      :hi operator ctermfg=1 cterm=bold " light red
      :hi type ctermfg=7 cterm=bold " light white
      :hi function ctermfg=4 cterm=bold " light blue
      :hi statement ctermfg=1 cterm=bold " light red
      :hi identifier ctermfg=3 cterm=bold " light yellow
      :hi special ctermfg=6 cterm=bold " light cyan
      :hi phpSpecialChar ctermfg=6 cterm=bold " light cyan. needed because sometimes

      " special is not recognized
      :hi include ctermfg=7 cterm=bold " light white
      :hi define ctermfg=7 cterm=bold " light white
      :hi delimiter ctermfg=6 cterm=bold " light cyan

      LOVE THY VIM. PRAISE THY VIM!

      --
      Reinard
    2. Re::syntax by reinard · · Score: 1

      Flamebait? Who the f**k modded that flamebait and why?

      It's even on topic...

      --
      Reinard
    3. Re::syntax by Anonymous Coward · · Score: 0

      RMS did.

  6. LIB = HTML; It's the Executable by AnamanFan · · Score: 4, Informative

    The LIB format isn't really proprietary. In short, it's your HTML page with a different file extension and a few additional HTML comment blocks. The only reason it's .lib is so you don't treat it as a HTML page since it's not a complete HTML page.

    The LIB file is text that's copy and pasted into the parent document. That is, if you were to delete the LIB file, you still have all the code in the parent files. What Dreamweaver does with the LIB files is recognize that any code changed within the LIB file must be changed in the parent files that use that code. However, this is the Dreamweaver executable that's detecting and making the changes. This isn't a server technology. This isn't anything special in the files (outside of standard HTML comment blocks), just how your copy of Dreamweaver is using a form of find/replace function on your site.

    As to open-source alternatives, you may have read previously about OSS lack of usability. This is why there aren't many good OSS editors out there. Oh there are editors, but they are mostly glorified text editors and some will display HTML pages with a WYSIWYG interface. But what makes Dreamweaver special are the advanced find/replace functions like LIB files. To my knowledge, nothing in OSS offers any where close to this functionality. You can code a site, even dynamic sites, with just a text editor and a FTP client. However, tools like Dreamweaver add functionality that makes the development process easier. You can make templates in text edit. But when you make a change to the template, text edit won't make the changes to the 200 other files that refer to that template. Dreamweaver will.

    I use Dreamweaver (with the GPL extention PHAkt) because it gets my job done faster. If a tool came out that was better or even comparable to Dreamweaver, I'd go for it. But, alas, there is no such a tool.

    --
    AnamanFan - Trying to find the Truth, one post at a time.
  7. 3 things-Frameworks. by Anonymous Coward · · Score: 1, Insightful

    Real websites use frameworks and CMS, and only use toys like dreamweaver for playing "what if".

  8. Informative by sabNetwork · · Score: 1

    I'm not sure exactly what Dreamweaver library files are (you might want to explain that in your article next time, hint hint), but I'm assuming they are used to make templates and dynamic content. In that case, do not use proprietary tools; use either SSI or a scripting language (go PHP!).

    Here are the tools I use for web design:

    Source editing: Crimson Editor, a freely available text editor that supports syntax coloring and just about anything you'd ever want in a text editor. Somewhat well-designed GUI and very small (fits on a floppy).

    PHP editing: Crimson Editor (listed above), and Zend for larger projects

    Page design: Photoshop/Imageready and (for more content-oriented pages) Illustrator

    HTML Editing: Adobe Golive CS. I know I'm sounding like an Adobe fanboy here, but GoLive really kicks ass. It has a steep learning curve, in that it's slightly harder to pick up than Dreamweaver, but after spending a few hours with it, you'll love it. Free trial available, I believe.

    Of course, this is all proprietary software, and that's how things are in the design world. With development, you have a little freedom, but with design, you're locked into the Big Four (Adobe/Macromedia/Corel/Quark) and the last two are on its last legs.

    1. Re:Informative by I_Love_Pocky! · · Score: 3, Insightful

      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?

      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 /. doesn't link to it).

    2. Re:Informative by hsoft · · Score: 1

      See my comment on XSLT... XSLT/XML *is* static linking.

      --
      perception is reality
    3. Re:Informative by sabNetwork · · Score: 2, Informative

      1.) The time required to "process" a server-side include on a non-caching, shared-hosting server is negligible. I invite you to run some timed tests with lynx.

      2.) The point behind using SSI is so that, every time the template is updated, only one file needs to be updated and uploaded.

      3.) Apache runs every HTML page through the interpreter regardless of whether it actually contains SSI code.

      In any case, we can all agree that SSI is better than using JavaScript includes :)

    4. Re:Informative by JimDabell · · Score: 1

      1.) The time required to "process" a server-side include on a non-caching, shared-hosting server is negligible. I invite you to run some timed tests with lynx.

      That depends on server-load, and you need things like xbithack to get proper caching with SSI anyway.

      2.) The point behind using SSI is so that, every time the template is updated, only one file needs to be updated and uploaded.

      The point behind using SSI is to reduce maintenance work. This happens at the expense of server resources. For small websites, the resources saved by not uploading all the files might outweigh the resources used by the server, but that doesn't hold true for all sites.

      3.) Apache runs every HTML page through the interpreter regardless of whether it actually contains SSI code.

      This isn't true unless you have deliberately changed the default settings to do this. The default configuration supplied by Apache doesn't even enable SSI by default - and when you uncomment the supplied code, it only applies to files ending in .shtml. Read the config file yourself.

  9. If I understand what LBI files are... by hsoft · · Score: 1

    If I understand what LBI files are, it is some kind of HTML code that is in several HTML pages, and makes your HTML code change everywhere when you change that LBI files? I wouldn't call this efficient.

    XSLT/XML/CSS all the way man. *There* lies the real power. http://www.w3c.org is the real source for webpage edition.

    --
    perception is reality
  10. Ouch by sahrss · · Score: 1

    For design, I use FrontPage,
    I feel sorry for your websites...and your clients, if you still have any. :-P
    1. Re:Ouch by trompete · · Score: 1

      Hey. I just use it for HTML 4 table layout. The CSS stuff is done with Dreamweaver. Dreamweaver pisses me off when it comes to tables.

    2. Re:Ouch by override11 · · Score: 1

      Dreamweaver doesnt piss me off with tables..... text view tag completion works wonders, tab in to keep code sorted and clean, no problems. why dont you like it? WYSIWYG not quite working right?? Learn the code muh brotha!

      --
      No I didnt spell check this post...
  11. If I understand what LBI files are...Odd man out. by Anonymous Coward · · Score: 1, Insightful

    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.

  12. Quanta by jspraul · · Score: 2, Informative

    one of the premier OSS html editors:

    http://quanta.sourceforge.net/

    1. Re:Quanta by Cranx · · Score: 1

      It doesn't do what he's asking for, though. Quanta is lacking any sort of automatic dynamic template system, either using templates proper or via a library system. Their version of templates is write-only.

      Quanta is a nice project manager, and editor ... but for a professional designer looking to update a large web site efficiently, it's useless. It's good for programmers doing web sites, but not designers.

  13. templates != dreamweaver by SanityInAnarchy · · Score: 2, Interesting

    In fact, the proper way to do templates is xslt/css, maybe with some xincludes, and so on. And in fact, I am already prepared for the ideal world where all those standards are supported by most browsers, so that the change doesn't have to propegate through files at all.

    I use a text editor and raw xml, because I want my documents to last forever with minimal maintenance. Dreamweaver will not last forever. Long after ASCII itself has fallen to UTF-8, my documents will stand, with the active support of only one individual -- ME. If the LIB file is easy to write scripts for without the use of Dreamweaver, I might consider it, and then reject it, because browsers do not support Dreamweaver -- but they do support xslt.

    As far as speed and ease, what's really needed is a good xml editor. I haven't tried any proprietary ones, and there aren't any good free ones. What'd really be nice is some sort of tab-completion for xml elements, based on elements that already exist in the same document, or on some common library based on what it's learned from watching you.

    --
    Don't thank God, thank a doctor!
    1. Re:templates != dreamweaver by AnamanFan · · Score: 2, Insightful

      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.
    2. Re:templates != dreamweaver by Anonymous Coward · · Score: 1, Insightful

      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.

  14. not a flame!! by nege · · Score: 3, Insightful

    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.

  15. I'm tired of having to learn new tools... by Anonymous Coward · · Score: 0

    I'm in the middle of a two week project to add template-based management to our intranet site.

    How it works is I use perl and HTML::Template. I use CSS and section-descriptive markings for style, and in the template I just use identifiers that sound like the classes I'm enclosing within them.

    Then, to fill in a page you create a data file called "whatever.data" and use a plain jain text editor or HTML editor (since inline HTML is fine). You delineate the sections using a notation that looks like RedHat spec files, and just fill in the ones that actually exist (body, header, footer, etc.) You can set flags in the datafile too (omit sidebar, omit footer instead of default, etc.).

    Then you add the data file to a directory index with a description (but instead you use the .html extension). A make file parses the index and auto-adds the targets for update, then calls the perl script to build each html file from an appropriate template and aforementioned data file (drop .html, add .data to extension).

    It seems to work (although the system is not flexible enough to be deployed outside this site just yet, need to take care of a few hardcoded things, and make the makefile smarter).

    Fuck dreamweaver. If I want a new layout, I just redesign the template in (insert foo tool) or adapt one from the web. Replace the template file with the new one, add the content markers where I want them, and just re-run make.

    1. Re:I'm tired of having to learn new tools... by Cranx · · Score: 1

      A lot of web sites are developed by designers (people with photoshop skills) and not programmers (people with perl skills). Dreamweaver is an excellent tool for designers.

  16. In the *WHAT*? by leonbrooks · · Score: 1
    Any real self respecting geek writes the html and css in the raw.

    /ME pictures the typical geek doing this, then hurriedly exits stage left... whimpering...

    --
    Got time? Spend some of it coding or testing
  17. Homegrown lbi-based template engine... by Bazzargh · · Score: 2, Insightful
    We actually use the lbi/dwt format as the basis for our template engine. I wrote this because I was annoyed at seeing the assets the web designer works on thrown away, or at best cut & paste, into JSP solutions (the same goes for most other template solutions).

    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:
    • our sites static skins are built to be navigable, so that replacing URLs is enough to get the site to use the correct servlets.
    • we ship a .war with the 'static site' skin held separately (typically under apache, see bit on URL rewriting below)
    • the .war is configured with the url to the root of the 'static site', and its location on disk.
    • whenever a .htm, .dwt, .lbi is requested in the dynamic site it reads it from its cache or disk, with some parts of the site replaced (see below).
    • jsps can use static assets as templates, via a template tag lib almost the same as the struts tiles tags. This is the typical means for replacing parts of pages in the static site.
    • the parser for the DW4 type stuff (no javascript expressions) was written by hand; for DWMX I wrote a small javacc parser for the javascript subset they support. The syntax is described pretty well in the DW help, for the JS bits you'd need to see the ECMAScript manual (or just get hold of Moz Rhino)
    • We parse the DW comments, the 9 URL attributes in html (8 standard html4 ones + 'background' I think), and URLs in @imported styles. We parse the URLs because we rewrite them to have the full path in the 'dynamic' site + session ids. Editable regions, URLs and LibraryItems are all replaceable by configuring the .war.
    • lbis are processed as includes; only the editable regions of files based on dwts come from that file - the rest comes from the dwt. This means you can edit the dwt files on the fly.
    • one reason for replacing URLs is that templated JSPs can be reusing a template at a different 'depth' than the original page; putting in absolute URLs avoids this problem. A second reason is that we point all URLs in templates that arent handled by the dynamic site back to the static site - so JPGs etc are served by Apache not the J2EE server (I know there are other solutions for this involving more Apache config...)
    • for those times you need popups - and would think you need URLs in your javascript - the no-JS-friendly [a href="x" target="y" onclick="window.open(this.href, this.target, ..."] allows URLs used by JS to be replaced.


    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 /applications/ (where its more important to have reusable UI components) stuff like Tapestry is a better fit. If you are uncomfortable writing parsers, this project is not for you. If you are comfortable with Velocity, then there are velocity extensions for DW that may suit. However, for all our website work this template engine fits our workflow like a glove.
  18. Heretic that I am, I use OpenOffice.org Writer by leonbrooks · · Score: 2, Interesting

    Plenty good enough to get started with, WYSIWYG and all. Produces much nicer HTML if started in HTML mode rather than writer mode, but even so in writer mode, it's chalk-and-cheese better than the abominations MS-Word spits out.

    My own website, while hardly a paragon of usability or graphic design, is mostly built on OOW-edited HTML that's been fed to a gawk script which rips off the head and tail, replacing them with PHP calls to generic top-and-tail scripts which do the preamble, headings, menu, links-here, translation form (thanks Google) etc.

    This makes consistency much easier, it's quick to edit stuff up (I use Linux, but that remains true even on MS Windows) and massaging MS-Word docs and the like to suit (precious few of those on my site but I do this elsewhere too) is fairly straightforward, although I usually have sed discuss some of the resulting HTML's shortcomings up close and personal before feeding it to the top-and-tailer. You'll notice that all of the W3C buttons work.

    If I've just got to add an item to a menu or whatever, simple little tasks, it's vim all the way, and of course for a larger, more complex site I'd take a completely different approach.

    --
    Got time? Spend some of it coding or testing
  19. LEO does this by johnseq · · Score: 2, Informative
    Leo is a python-based open source outlining tool that allows you to do web snippet or common element sharing. It lets you manage any repeated element in a multiple documents in one place, but the beautiful thing is that it will export the common element *inline*, so that unlike Dreamweaver's lib (if I understand it correctly) you actually have a working HTML file that you can view in a browser.

    Leo @ Sourceforge

    It's mature, actively developed, cross platform, and quite useful when working with languages that don't have the concept of a subroutine, like XML/HTML, XSL, SQL.

  20. Forgot to mention - Konqueror for uploading by leonbrooks · · Score: 1

    fish://yourname@yourserver/path/to/website (or ftp://yourname@yourserver/path/to/website) plus drag and drop. Fabulous! The MS Windows version ain't as smooth or up to date, but it is a great deal safer than IE. (-:

    For images, GIMP 2 doesn't have an image-chopper-upper by default, and while there are plugins to do that, I often prefer to do it (with GIMP, set some guides and then crop to that; you can make some sections of an image JPEG and others PNG (or omit them and replace that piece with flat colour) to suit the content) "by hand". It does have all manner of other nice features, more than enough to keep the average punter occupied for weeks.

    To test things with IE 'coz "everyone" uses it, I could maybe-illegally run it under WINE (someone's even done an RPM, but I can't be bothered finding it) but as it turns out, I have a friend with a Windows2003 box exposed to the internet, so I aim rdesktop at that when I want IE-testing.

    --
    Got time? Spend some of it coding or testing
  21. First off by CiceroLove · · Score: 3, Interesting

    Anyone who uses Dreamweaver for any serious work is off their freaking rocker. I can't imagine for the life of me why anyone would use those tools. It's not just code bloat that makes them so awful but the simple fact that it keeps you ignorant! Do you think the really really interesting and well-designed websites used Dreamweaver for anythign other than project management? You have to get dirty if you want to learn how to code anythign on the web. There are so many undocumented or undervalued tricks to be discovered! But you'll never discover them because Dreamweaver, Frontpage, etc. are made to do one thing: make your website fit within the confines of that program. If Dreamweaver can't do it, you can't do it. That's kind of sad.

    As for what I use (yes I am a professional for almost ten years now).....

    Eclipse Eclipse Eclipse Eclipse Eclipse Eclipse

    Have I made my point yet? :) Extensible, syntax highlighting, project management, open source, free, CVS repository browsing and control, internal PHP processor, internal Perl RegEx engine, Apache control, [insert your need here]

    Eclipse is an unbelievable tool that I have been using for about a year now and I keep finding new ways for it to help me do my job better.

    You can go to Eclipse.org to pick up a copy. I highly recommend getting v3.0 M8

    1. Re:First off by it0 · · Score: 1

      I hated dreamweaver when I first looked at it version 3 or 4 but recently I looked again at mx2004 and I was immediatley hooked. I agree that older versions introduced much bloat but I don't think that still holds.

      The way it does CSS is very convenient. I like it's cross-browser checking. And what I really like is that one page 1 can
      -edit html
      -edit design
      -edit tag where all the options are easily available
      -check documentation
      -more
      Without it being cluttered!

      I stopped using Homesite and occasionally I use vim when ssh'ing to the machine but I really think it's one of the best products out there to do this job.

  22. Get Thee Free From Dreamweaver by smartalecvt · · Score: 4, Informative

    I used Dreamweaver for a long time, as it was convenient and relatively easy (and the library and template features were nice).

    Unfortunately, the problem is that, as others have noted here, using such corporate comforts protects you from doing things the right way.

    I think what you should be thinking about is a content management system, wherein your content is easily editable (live and online) and the system makes you work with templates in the right way (i.e., using CSS). For my current job, I wound up rolling my own CMS, using PHP for the front end and to generate HTML, and MySQL to keep track of templates. For a live content editor, I'm using Ephox, which is a great product but costs a pretty penny. I started out with Spaw, but it doesn't generate XHTML and can only be used in IE.

    There are a ton of CMSs out there -- I just found that most of them were overkill for my website. (And the open source ones generally use IE-centric products for live content editing.) Just go to sourceforge and search for "CMS". Mambo is one of the better ones I've seen.

    Oh, and I second the nomination of Crimson Editor as a good programmer's text editor. (Free, as in beer.) For CSS, I use Top Style (not free, but excellent).

  23. Get Thee to PlainBlack by Anonymous Coward · · Score: 1, Informative

    try WebGUI from plainblack. While in some places it is still rough around the edges, it is very flexible and has a nice core feature set. I consider it the "mysql" of CMS. Just the right functionality. OSS at no additional charge ;).

    It is written in Perl, is modular, and completely templatized. There is not much you can't do with it out-of-box with a little imagination.

    Its only real down sides are limited e-commerce support, and it can be difficult to setup initially. For the faint-of-heart, they offer hosted CMS using WebGUI for $35.00 per month (shell account included).

    The documentation requires a fairly broad background to put all the pieces together... but it does have a book and online help. It's default setup could use some improvement to really demonstrate the power of the software.

    No. I don't work for them. Just a fan/contributor. What drew me to it was the ease of use, architecture, and the decent support for per-page SEO (IE ability to specify metatags on per page basis).

  24. dreamweaver...hmmm.... by zlel · · Score: 1

    hmm. i've been recommending dreamweaver to everyone who's been thinking of using frontpage, but frankly, i still can't figure out how to fit it into my workflow. i use photoshop for all my graphics and output an initial html from it, and then i use vim on it to handcode the stuff that needs to be handcoded and make a template out of it should i need it as a template. stuff like fireworks still puzzle me, really.

    (ah my designer-student-friend was trying to tell me how programmers can't see things their way, but sigh... mayhaps only those who hand-code can understand why hand-coding is the only true way haha)

  25. lbi is lame by Anonymous Coward · · Score: 1, Informative

    Dreamweaver's lbi and template functions are a nightmare down the road when someone wants to edit the page. What you really want is includes. Everywhere you would use lbi, use an include instead.
    And you can skip the stupid DWT templates by creating a good, solid xhtml framework for your pages, use css to pretty 'em up, and pull the content in through includes. It's modular, scalable and easily revised. Just reuse your framework.
    Dreamweaver is OK (although no better than OK), but those libraries are way more trouble than they're worth.

  26. I STRONGLY AGREE... by jimmytango829 · · Score: 1

    Anyone looking for the one of the best editors ever better check out Eclipse. Any feature you might need can easily be found as a plugin. If WYSIWYG is your thing, there are even plugins under development for that. I highly recommend Eclipse Colorer...excellent syntax highlighting for almost ANY code type...even PHP, CSS, javascript and HTML in the same document! Look it up. Then use it.

  27. Idiotic parent post by Anonymous Coward · · Score: 0

    You have no idea about web design, development or even 'straight-up'.

    Design should be done on paper, you do not design html, you forge xhtml on the fly to suite you very requirement for any design you wish. Dreamweaver is a plausible tool, which is only used for syntax highlighting, tag completion, attribute completion and a concept of a website with a root and an image directory.

    Don't even utter the F word in this place again.

    Give me an eclipse plugin that doesn't slow eclipse down that does this, and you have got yourself someone who will pay 25 bucks, and probably 5k other people who will pay 25 bucks.

  28. Re:not a flame!! - do your research by Morganth · · Score: 1

    Any Windows app worth its salt allows you to choose how to end lines. Adding ^M to the end of line is something a lot of Windows programs do, but Dreamweaver lets you disable it...

    Go to Preferences-->Code Format-->Line Breaks. Choose Unix (or Mac OS, or Windows).