473,799 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Templates/inclusion in the new age

I used to work as a web designer a couple of years ago, but I haven't
been closely in touch in the past years. Has anything changed recently
for managing content that is common among many pages (menus, headers,
footers...)?

The main options I recall are:
- Frames :P
- Server-side includes
- Dreamweaver templates
- PHP includes

I used Dreamweaver templates a lot -- learned to love them -- but now
I'm working on a project with another guy who does not have Dreamweaver.
I don't want to force it on him.

Is there a standard in XHTML or newer HTML standards that allows file
inclusion (much like CSS inclusion)? Or, is there some type of
pre-processor that I can run on my files to generate the final pages
(like Dreamweaver does it internally)? Ideally I would like the content
to be viewable off-line (e.g. no server-side includes)...

Thanks in advance fellow web monkeys!

Nathan
Jul 20 '05 #1
16 2013
Nathan Funk wrote:
I used to work as a web designer a couple of years ago, but I haven't
been closely in touch in the past years. Has anything changed recently
for managing content that is common among many pages (menus, headers,
footers...)?
No, the options are the same as you remember.
Is there a standard in XHTML or newer HTML standards that allows file
inclusion (much like CSS inclusion)?
xhtml offers nothing that html does not offer by way of markup.
Ideally I would like the content
to be viewable off-line (e.g. no server-side includes)...


The best way to do that is to run a web server on your production box.

--
Brian (remove ".invalid" to email me)

Jul 20 '05 #2
"Nathan Funk" <no**@none.co m> a écrit dans le message de
news:HNuuc.6266 09$oR5.331266@p d7tw3no
Has anything changed recently
for managing content that is common among many pages (menus, headers,
footers...)?

The main options I recall are:
- Frames :P
- Server-side includes
- Dreamweaver templates
- PHP includes


You can add iFrame (and for XHTML? object but I don't think it is as
supported as iFrame)

Jul 20 '05 #3
Nathan Funk wrote:
Is there a standard in XHTML or newer HTML standards that allows file
inclusion (much like CSS inclusion)?


Not specifically for XHTML, but there is XInclude [1]. This is
specifically for including XML fragments within another XML document.
Although it's still a candidate recomendation, so don't expect it to be
*widely* implemented in the common browsers for a while, if at all.
This may be more useful with some kind of XML preprocessor that parses
you're pages and includes the necessary files automatically before
sending to the client.

[1] http://www.w3.org/TR/xinclude/

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #4
Brian wrote:
Nathan Funk wrote:
I used to work as a web designer a couple of years ago, but I haven't
been closely in touch in the past years. Has anything changed recently
for managing content that is common among many pages (menus, headers,
footers...)?


No, the options are the same as you remember.


Thanks for the reply, but that's just sad. It's probably one of the main
features that would finally allow clean programming...

What would be wrong with an <include src="mymenu.xht ml"/> ? Something so
similar is already done for including CSS and scripts... why not also
plain content???

Maybe there's a good explanation for this. If so, you would make me a
happier person by letting me know :)

Thanks for all your responses so far,

Nathan
Jul 20 '05 #5
In article <n7Xvc.667199$I g.175337@pd7tw2 no>, no**@none.com enlightened
us with...

What would be wrong with an <include src="mymenu.xht ml"/> ? Something so
similar is already done for including CSS and scripts... why not also
plain content???


There is. I dunno how cross-browser it is, but it works in IE6 and NN6.

<object id="file1" data="test.html " type="text/html" width="100%"
height="50%" standby="Loadin g test.html...">
Your browser cannot render embedded HTML documents.
</object>
--
--
~kaeli~
A man needs a mistress... just to break the monogamy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #6
kaeli <ti******@NOSPA M.comcast.net> wrote:
What would be wrong with an <include src="mymenu.xht ml"/> ? Something so
similar is already done for including CSS and scripts... why not also
plain content???


There is. I dunno how cross-browser it is, but it works in IE6 and NN6.

<object id="file1" data="test.html " type="text/html" width="100%"


That's embedding not including.

Embedding opens up a new viewport inside the existing viewport.

--
Spartanicus
Jul 20 '05 #7
On Fri, 04 Jun 2004 15:21:02 +0100, Spartanicus <me@privacy.net > wrote:
kaeli <ti******@NOSPA M.comcast.net> wrote:
What would be wrong with an <include src="mymenu.xht ml"/> ?
There is. I dunno how cross-browser it is, but it works in IE6 and NN6.
<object id="file1" data="test.html " type="text/html" width="100%"


That's embedding not including.
Embedding opens up a new viewport inside the existing viewport.


As per SGML tradition, 'includes' are handled through the entity
expansion mecanism.

It is something that has been there for ages but since in SGML the word
'entity' was not spelled out as 'include' we do have the lack of
understanding of the difference betwen the described noun 'entity' and
the sometimes implemented verb 'include'

I hope that Nick has kept a usable interface for this illustration of
mine.

http://css.nu/markup/markup-entities.html

All the best...

Jul 20 '05 #8
Nathan Funk <no**@none.co m> wrote:
I used to work as a web designer a couple of years ago, but I haven't
been closely in touch in the past years. Has anything changed recently
for managing content that is common among many pages (menus, headers,
footers...)?


No, the options are the same as you remember.


Thanks for the reply, but that's just sad. It's probably one of the main
features that would finally allow clean programming...

What would be wrong with an <include src="mymenu.xht ml"/> ? Something so
similar is already done for including CSS and scripts... why not also
plain content???


Let's assume that HTML 4 would have added a client side include method,
all existing UAs (Google etc.) would then have been broken,
unacceptable.

Now let's assume that HTML 4 would have added <poem></poem> markup,
compliant pre HTML 4 UAs would ignore this unknown markup as per spec
and render the content. This is acceptable behaviour for a markup
language which is meant to be backward compatible.

Afaics it's possible to add Client Side Includes to something like XHTML
2, since it's designed to be not backward compatible.

It might be nice to have that coupled to css media rules, so that you
can include code depending on the output media.

--
Spartanicus
Jul 20 '05 #9
In article <hm************ *************** *****@4ax.com>,
Jan Roland Eriksson <jr****@newsguy .com> writes:
I hope that Nick has kept a usable interface for this illustration of
mine.
/me looks up ...
http://css.nu/markup/markup-entities.html


Ah, yes. I think you can take that as stable for the forseeable
future (ie unless something very bad happens, like a new security
problem concerning OpenSP that I can neither live with nor fix).

Did you notice http://valet.webthing.com/catalogue/ ?
Not an online demo, but a very practical application of the concept.
Well, in a manner of speaking: SGML is perhaps not an entirely
conventional choice of tool for the job:-)

--
Nick Kew

Nick's manifesto: http://www.htmlhelp.com/~nick/
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2168
by: Nomak | last post by:
Hello all, i have two template classes which needs each other. I tried to write some fwd decl / decl / impl in a good way but i can't get it to compile. Explanations: - .hh files are for declaration (template or not) - .hxx files are template impl
3
1931
by: Leslaw Bieniasz | last post by:
Cracow, 20.09.2004 Hi, I am posting this again, because my previous message dated 18.09. disappeared from the list (someone has cancelled it ? why ??). I have a problem with compiling the following construction involving cross-calls of class template methods, with additional inheritance. I want to have three class templates:
5
3728
by: Dave | last post by:
Hello all, To protect against multiple inclusions, it is standard practice to enclose the contents of a header file in a construct like this: #ifndef FOO_INCLUDED #define FOO_INCLUDED .... #endif
1
2085
by: Rebecca Hoffmann | last post by:
Hi, I have a serious problem while compiling a small project (a part of the Modular Flow Scheduling Middleware: ex1): There are 3 linker errors, all from symbols that point to templates: -- verbose build output -------------------------------------------- ex1.obj : error LNK2001: unresolved external symbol "public: virtual
4
1260
by: Igor.Smirnov | last post by:
Does somebody remember, when templates appeared really in C++ compilers and became fully operational, and also when they appeared in C++ standard? Thanks! --
7
1156
by: Bern McCarty | last post by:
We have some large mixed .dlls. The percentage of code that is managed is small relative to the percentage of native code. We generally want to favor native callers. But I am struggling with the phenomenon where the mere use inclusion of headers that contain templates in /CLR compilands seems to result in methods of template instations ending up getting compiled into IL and thus penalizing native callers. This is not at all what I want...
12
2097
by: Ben | last post by:
I'm kind of new to creating templates. I've made some small class and function templates in the past and I have used quite of bit of the STL, but I am having problems tyring to create templates. I'm trying to make class templates in seperate header files with pointers to each other, and I am getting strange errors. Is it possible to do?
2
1440
by: asdf | last post by:
There are two strategies for compiling templates: the includsion model and the seperate compilation model. Could you please tell me which models vc++ and gcc take, respectively? Thanks.
6
8621
by: Hunk | last post by:
Hi I have a question on usage of forward declarations of templates. While searching through this group , people suggested using forward declarations and typedefs for templates as // in myfile.h template<typename T,typename R> class some_class;
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10485
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9073
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.