|Newbie questions about Pliant
How to create a site with meta, footer and header.
|Message posted by reitman on 2003/10/18 06:35:56
|I'm using pliant86. I can not find a document that describes
how to override various tags, and the new framework for html stylesheets.
If I understand correctly,
html_tag XXX -> YYY
will create a canned tag <XXX>whatever</XXX> and if I want to create
something interesting, I need to define
Do I need to restart the server everytime I make a chage to a style file ?
If yes, can I do all the style setup (html_tag and style_tag) within
a .page, and move it into a .style when I'm satisfied ?
I have created this file, test.page:
and it gives me a compile error about the first occurence of 'bq' on the second line.
The samples /plinat/pliant/sample/style.page and /pliant/pliant/protocol/http/style/tiny.page don't work.
My objective is to be able to specify a meta, a header and a footer,
and a few custom tags...
|Message posted by hubert.tonneau on 2003/10/18 08:14:22
|Defining a new tag is two stages:
Stage 1: define it's syntax
Stage 2: define the XML -> HTML transform
Now, if you tag does not have a body, then it will be something like:
Lastly, if you just want to insert a page header and footer to your site,
then it's not necassary to define a new tag, because there is already one
(I don't know if it's in release 86, but it is in release 87):
write "<a name=[dq]top[dq]></a>[lf]"
write "<a href=[dq]/[dq]>Home of the site</a>[lf]"
write "<a href=[dq]#top[dq]>Top of the page</a>[lf]"