Help - Search - Members - Calendar
Full Version: Multiple blocks of code/text in one external HTML file
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
csmithg
I have several pieces of data that repeat throughout my site.
Instead of making a filename.htm for each include, can I somehow give each one a name and keep them all in one file? (I've done this with .asp)

Thanks in advance.
Darin McGrew
I am not familiar with ASP, but I've done something similar with the HTML preprocessor that I use. Every preprocessor source file includes a common file that defines a bunch of variables, defines the common header that appears at the top of every page, defines the common footer that appears at the bottom of every page, etc.
csmithg
QUOTE(Darin McGrew @ Feb 5 2009, 04:02 PM) *

I am not familiar with ASP, but I've done something similar with the HTML preprocessor that I use. Every preprocessor source file includes a common file that defines a bunch of variables, defines the common header that appears at the top of every page, defines the common footer that appears at the bottom of every page, etc.


Thanks for the speedy response!!
I'm not familiar with that at all. I thought maybe something similar could be done in html like how you can anchor a certain part of a page with a "name" and it would just load that piece or how calling out a class or id in a css. Do you have a link to an example of a preprocessor?
Very much appreciated. I have been searching everywhere for a piece of code that may not even exist.
Darin McGrew
Here's a list of them:
http://htmlhelp.com/links/preprocessors.html

I use HTMLPP (iMatix), but I'm sure others are fine choices too.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.