Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Stuffing content into a web page - easy maintainance
All the pages on the main section of this web site are generated by some sort of program - a Perl script that we call "mksite" for page which are essentially static and are generated in batches from a template each time we do an update, and PHP scripts for the more dynamic pages ... although actually it's rather more complex than that in that the Perl script generates PHP (and, yes, it is great fun to protect the $characters needed by PHP from the Perl and vice versa - I'm forever asking myself "is this to be expanded at build time or display time" when I work on this code!).

Before you ask - yes it is more complex than it needs to be; that's a result of the history of its development rather than any current design system. Never the less, it does work efficiently - for the most part, data and templates appear only once, so that a single change (once I find where to make it) will ripple right through the site.

The fashion is to call the whole thing a "Content Management System" - which it is - or a "Templating System" - which it also is. Not developed with those things in mind, but none the worse for that. And everywhere we want to insert content in a template, we use a placeholder. For example: "This %topic% course starts on %date%" will appear in the original of the pages we maintain, but that will be filled in by the scripts an either level (Perl or PHP) to give something like "This Perl Programming course starts on 20th August".

I commonly used the placeholder %stuff% for the main content of a page that's to be cut in ... and I was mosed amused to learn from our student Sam on Tuesday that she also used "stuff" as a main variable name quite often - "a magnificent word" as she described it!
(written 2007-08-09 06:15:57)

Commentatorsays ...
Ted:Oh how nice, I'm not the only one who uses "stuff" as a variable. That makes me feel better :-)
(comment added 2007-08-09 18:57:49)
Associated topics are indexed under
G902 - Well House Consultants - Web site techniques, utility and visibility

Back to
An example of Java Inheritance from scratch
Previous and next
or
Horse's mouth home
Forward to
From Leeds

Some other Articles
Plastic or China
In the USA for a few days
From Leeds
Stuffing content into a web page - easy maintainance
An example of Java Inheritance from scratch
Weymouth - Sunny Summer Sunday afternoon
DHCP automatic IP address v Static IP
Day trip to Weymouth
Badges, Breakfasts and Trigger
Pure Perl
1690 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho