Re: generic problem...

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
You can't do an "include" via (x)html, though you could do framesets.
That's how people typically solve the problem you have.

I used to use some php on my site for almost the same reason you're siting
below, though I've weeded it out in favor of my static page plugin.  The
following pages are not part of my blog, but have "static" pages which are
rendered with my head.html and foot.html:

   http://bluesock.org/~willg/blog/static/me/
   http://bluesock.org/~willg/blog/static/dev/
   http://bluesock.org/~willg/blog/static/music/

Additionally, I added the ability to execute blocks of Python code (just
like what PHP does, though it's in Python) to my static page plugin.  That
list of links on my music page is stored as a dict of title -> link tuples
since it's much easier to add a line of that than add more html.

It really depends on what begin.php and end.php do.  Do they consist of
PHP code or are they just header/footer blocks of html?

/will


On Sun, 29 Feb 2004, gabor wrote:
>
> in my homepage(s), i only use (x)html, and VERY little php (only the
> "include" command).
>
> i do it because thisway when i want to add a new webpage to my website,
> i simply create a new file with the following content:
> "<? include("begin.php")?>
> <?include("end.php"?>",
> and i have a webpage with title, css, link-list and so on already
> created.
>
> but this didn't work of course when i use pyblosxom.
>
> any ideas what could i do?
>
> my first idea is to hack pyblosxom, and have him call php on it's
> output. what do you think?
>
> or is there a way to do "include" in (x)html (without php)?
>
> thanks,
> gabor


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.