473,410 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

includeHTML vs PPWizard

I have been using HTML-Kit as my editor. I have been using PPWizard
pre-processor to insert common blocks of HTML. I am considering
switching to includeHTML as my pre-processor. My impression of the
pros and cons is as follows:

1) PPWizard *substitutes* HTML code for special tags, so you have 2
files for each page: the "before" and "after" files. To see a display
of the final form, one must view the "after" file. To re-edit, one
must switch back to the "before" file, make a change, run it through
PPWizard again (outside of HTML-Kit), and view the new "after" file.

includeHTML substitutes code between special tags, and *retains* those
tags. So, one needs to edit only one file (creating new versions), and
that file can always be displayed in final form. Thus, re-editing is
easier with includeHTML.

2) The "after" file generated by PPWizard shows no evidence of
pre-processor tags. I am the volunteer webmaster for a small
non-profit group http://www.catsociety.org. If I get "hit by a bus,"
another volunteer who may not have the time/experience/desire to learn
the pre-processor would find it easier to pick up and run with the
files generated by PPWizard.

Do I have a correct view of how these two very cool, free,
pre-processors compare? What important points am I missing?

Thanks,
Teffy
Jul 20 '05 #1
5 2188
In article <49**************************@posting.google.com >,
WG**********@spammotel.com says...
1) PPWizard *substitutes* HTML code for special tags, so you have 2
files for each page: the "before" and "after" files. To see a display
of the final form, one must view the "after" file. To re-edit, one
must switch back to the "before" file, make a change, run it through
PPWizard again (outside of HTML-Kit), and view the new "after" file.

includeHTML substitutes code between special tags, and *retains* those
tags. So, one needs to edit only one file (creating new versions), and
that file can always be displayed in final form. Thus, re-editing is
easier with includeHTML.

2) The "after" file generated by PPWizard shows no evidence of
pre-processor tags. I am the volunteer webmaster for a small
non-profit group http://www.catsociety.org. If I get "hit by a bus,"
another volunteer who may not have the time/experience/desire to learn
the pre-processor would find it easier to pick up and run with the
files generated by PPWizard.

Do I have a correct view of how these two very cool, free,
pre-processors compare? What important points am I missing?


Either write some documentation for the process you go through now, or
switch to SSI.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2
I almost forgot:

3) I think you cannot execute logic with includeHTML. With PPWizard,
the page navigation links included are different depending on which page
is being generated. Or, maybe there is a better way to do something
similar? http://www.catsociety.org

Teffy

Teffy wrote:
I have been using HTML-Kit as my editor. I have been using PPWizard
pre-processor to insert common blocks of HTML. I am considering
switching to includeHTML as my pre-processor. My impression of the
pros and cons is as follows:

1) PPWizard *substitutes* HTML code for special tags, so you have 2
files for each page: the "before" and "after" files. To see a display
of the final form, one must view the "after" file. To re-edit, one
must switch back to the "before" file, make a change, run it through
PPWizard again (outside of HTML-Kit), and view the new "after" file.

includeHTML substitutes code between special tags, and *retains* those
tags. So, one needs to edit only one file (creating new versions), and
that file can always be displayed in final form. Thus, re-editing is
easier with includeHTML.

2) The "after" file generated by PPWizard shows no evidence of
pre-processor tags. I am the volunteer webmaster for a small
non-profit group http://www.catsociety.org. If I get "hit by a bus,"
another volunteer who may not have the time/experience/desire to learn
the pre-processor would find it easier to pick up and run with the
files generated by PPWizard.

Do I have a correct view of how these two very cool, free,
pre-processors compare? What important points am I missing?

Thanks,
Teffy


Jul 20 '05 #3
m
Teffy wrote:
.........[snipped] ...................
Do I have a correct view of how these two very cool, free,
pre-processors compare? What important points am I missing?


You can actually learn enough Perl to write your own
quick-and-dirty preprocessor in no time, and you'd be
doing yourself the great favor of learning a web
programming language.

--
Cheers, m at http://www.mbstevens.com/
....via Tux and Ice: 0% GatesBloat.

Jul 20 '05 #4
In article <49**************************@posting.google.com >, one of infinite monkeys
at the keyboard of WG**********@spammotel.com (Teffy) wrote:
Do I have a correct view of how these two very cool, free,
pre-processors compare? What important points am I missing?


I've no idea - I haven't used them. But your account of them looks
too coherent to be nonsense, so I'll take it as accurate. I make no
comment on whether either of them generate "sane" HTML beyond the
scope of your specific question.

Any preprocessor that relies on special tags that are not defined
in HTML *must* ensure they are not served up to browsers. From your
post it's clear that PPWizard gets that right, and likely that
includeHTML screws it up.

I say "likely", because there is an ugly but legitimate hack that
gets round the problem: namely embedding preprocessor instructions in
<!-- html comments -->. This is of course best known in SSI, and if
that's what includeHTML is leaving behind you're OK.

SGML or XML offer more robust solutions to this. But you can't present
them to todays web browsers without a lot more work, and a more
sophisticated publishing framework such as mod_xmlns or XSLT.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #5


Nick Kew wrote:
In article <49**************************@posting.google.com >, one of infinite monkeys
at the keyboard of WG**********@spammotel.com (Teffy) wrote:

Any preprocessor that relies on special tags that are not defined
in HTML *must* ensure they are not served up to browsers. From your
post it's clear that PPWizard gets that right, and likely that
includeHTML screws it up.

I say "likely", because there is an ugly but legitimate hack that
gets round the problem: namely embedding preprocessor instructions in
<!-- html comments -->. This is of course best known in SSI, and if
that's what includeHTML is leaving behind you're OK.


Comments are what it leaves behind. Thanks for your thoughts.

Teffy

Jul 20 '05 #6

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

Similar topics

0
by: Aaron Chan | last post by:
Hello all, After looking around for a while, I seem not to be able to find a HTML preprocessor for Windows with *Unicode* support... I've tried htp, ppWizard and htmlex, all of which fit my...
6
by: BobK | last post by:
Hi Everyone, Is there a way to add a line of code to all pages at one time? I would like to do a monthly update to every page but don't want to have to do each page individually. I am using...
4
by: steven | last post by:
Hi, I have a header which consists of an image with clickable areas. Now since this header appears on all my pages it would make sense to put it as a background-image in my CSS. However, I can't...
3
by: JBH | last post by:
I'm having difficulty removing spacing between two rows in a table. Below is a copy of my source code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>About...
7
by: mal_k100 | last post by:
I am seeting up a help system that uses some common text. Using a frame I can link to the common text : <FRAMESET ROWS="100,*" > <FRAME SRC="SpecificTextForHelpPage1.htm" scrolling=no...
3
by: griffithsj_520 | last post by:
I have to create a web page to give to clients that is shipped on CD. The idea is that they would open the page and it would display in their web browser. What this will do is to provide a list...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: Jeff User | last post by:
Hi all How can I load an existing html file into a table cell for display? Setting the TableCell.Text to an existing web file path only displays the path of the file, but not the file itself....
4
by: kisloid | last post by:
Could anyone give me idea how make bloglike NavBar? I would like to add on each page 10 links with 10 previous items. Every item files may numbered as 01.html, 02.html, 03.html, etc...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.