Mod Layout 3.0 Escapes Beta 24
Brian Aker (AKA Krow) sends word that the mod_layout Apache mod has arrived after a long beta period at version 3.0. From the project's page: "By allowing you to cache static components and build sites in pieces, it gives you the tools for creating large custom portal sites. If you are looking for more information you can look at its faq."
Re:Why not use a preprocessor? (Score:1)
Wrong Approach (Score:1)
Re:Why not use a preprocessor? (Score:2)
Consider a situation where people are using WYSIWYG editors. Maybe they are all using the same editors -- but probably not. Some are probably even using Word. And even if you standardize on an editor, my experience with the templates these editors provide is that they are less than robust. They also require training -- it's very easy for someone to create a page that seems to fit with the overall site look, but are actually static and won't update.
A preprocessor won't work, because then there's a whole complexity to updating the site -- they can't simply upload a page, because it will be in a raw form and the preprocessor has to be run. That sucks. All the programs just support FTP, everything else requires all sorts of training and the inevitable mistakes.
PHP sucks for this. Really. WYSIWYG don't let you create invalid HTML pages -- that means there will be a <head> and all that, and if people have to put the <? echo header(); ?> crap in their pages you are burdening them with a lot for little benefit.
So this leads you to mod_layout. I've implemented the same thing before in PHP, Perl, and Python -- which is only to say: it's really useful, I've really used this sort of thing and been happy with it, and I bet an Apache module will do it faster than the P* languages.
Interesting (Score:1)
-Moose
Re:Interesting (Score:1)
-Moose
Re:Interesting (Score:1)
Just what the world needs... (Score:1)
deeds, not words (Score:1)
========================
63,000 bugs in the code, 63,000 bugs,
ya get 1 whacked with a service pack,
Why I don't use apps like these (Score:2)
That's probably not at all correct, but I simply don't have the time to test every single thing that gets released, I need them to convince me that it is worth my time. Since I'm really rooting for the little guy, I think it is a shame that they can't go that extra mile.
Mod Layout (Score:1)
It allows you to add footers and headers to a page as well as text before and after a certain tag.
It doesnt matter if the content is produced by PHP, Jsp, Static whatever.. it will still work. IE: It goes after your PHP page, wonder how this works with output buffering tho.. hmmmn?
It ships with a BSD style license.
Meaning basically after all is said and done this can add in a couple of extra things so that you dont have to do so in your code.. In practice this might get a little messy without a well designed and managed project
You can also include Perl scripts for the header/footer. Possibly PHP / Java etc, but im not exactly sure how this works just yet.. Just playing with it
So basically if this fits within your development model or fills the niche it was designed to for you by all means use it. It is just designed to do one thing and do it very well. I think that I could find some uses for it in quite a few situations. Especially text before and after a tag
Jeremy
Re:Interesting (Score:2)
signature smigmature
Removed from frontpage (Score:2)
signature smigmature
Re:Interesting (Score:3)
signature smigmature
Re:Why I don't use apps like these (Score:4)
signature smigmature
Re:Interesting (Score:1)
Although many (such as myself) have built "block" and page caching components utilizing the simple "http GET, save to cache file, index in global hash table" or similar techniques, having this in an apache_mod has two benefits:
1) It's compiled, so it will run faster than your scripts.
2) It's implemented BEFORE it hits your dynamic engine so it lessons the load to mod_perl|php|cf etc.
Why not use a preprocessor? (Score:3)
Personally, I can think of two reasons for mod_layout, though neither one is especially compelling:
Overall, I personally don't like the Slashdot blurbs that link to a less-than-informative release message that was probably kicked out by a programmer who'd just spent the last N hours killing bugs and is in a hurry to get things up and available. I don't blame the programmer (who's doing a public service, usually for free), and I don't blame Slashdot (their role is mostly as an index rather than a direct content producer), but I still wish there was something a little more concrete, short of wading through the documentation of the actual module.
In other reports... (Score:2)
Ok... but... (Score:3)
Personally, I strip my Apache config down to the bare essential modules I need. This seems neat, but covers ground already tread upon long ago. Am I missing something?
Re:Interesting (Score:1)
Re:In other reports... (Score:1)
Maybe
Re:Why not use a preprocessor? (Score:2)
You are asking the /. community? Of course many will say PHP... That is what I use. While mod_layout looks interesting PHP does everything I want it to (I can store static pages as binary large objects (BLOBs) in MySQL and get a similar effect if I want to) and it is widely supported. Still looks interesting.
Sig: Warning The following may be illegal under the DMCA (rot-13 decoder):
ABCDEFGH I J KLM
Re:Just what the world needs... (Score:2)
So? It makes perfect sense in many instances. A good example would be a company intranet-- imagine being able to offer a customizable page to your employees with the features that they need. Not that there aren't a plethora of portals on the internet but that is a separate matter.
Sig: Warning The following may be illegal under the DMCA (rot-13 decoder):
ABCDEFGH I J KLM
why I use mod_layout (Score:2)
All of my sites are a combination of static and dynamic pages -- with the dynamic pages being generated by multiple sets of programs, and many of the static pages also generated programmatically.
Creating a site interface for something like that is a bear -- and changing it is worse. To install updated graphics or redo the look of the site, you had to patch multiple sets of programs, or hack the programs to read the header/footer and attach them on the fly (which meant hassles every time the program had to be updated instead...). The static pages: good luck.
And, of course, the designers who own the interface want it changed at 4PM on a Friday with four hours notice.
Now, it's two files, one for the header, one for the footer. It needs changing? change them and restart Apache. My maintenance headaches have been cut by a huge amount, and updates are now trivial, so we're more willing to fix things or improve stuff when we find better solutions. bEfore, it was a major hassle -- so it tended to wait, even fi we didn't like something.
And it basically just works. And the people who create content don't have to worry about the interface, the admins don't have to worry about re-skinning stuff when the templates change, and you don't have to worry about whether or not all of the changes have been made in all of the places at the right time. It all happens magically inside Apache.
Truly wonderful. If you're doing something straightforward and fairly simple, it's probably not a big deal (but even then, I think having the interface completely separate from the content is a really Good Thing, since it makes it impossible for one to screw up the other, or for an author to botch things...); build a complex system that involves multiple packages from multiple programming groups in multiple languages, and content from half a dozen groups and four different programs, and suddenly, this is a great thing to have...
I'm now starting to look at re-doing the corporate intranet using it, because of that separation between interface and content, and the hassles that happen when authors have to worry about interface issues, even with good tools and templates.
Mostly, though, it's simple -- and it just works. And it really cuts my maintenance hassle. How can this be bad?
Re:Interesting (Score:1)
Actually, this is an immensely useful tool in a couple of circumstances (especially involving static pages). Consider any of these cases:
-all dead homiez