Re: TclHttpd: How to use CSS with it?




Gerald W. Lester wrote:
Robert Hicks wrote:
<snip>
Lots of questions before any thoughts!

1) Are you talking about just files on disk?
2) Are you talking about tml files on disk?
3) If you are doing the generation in tcl code, what package are you using
to generate your html?

The answers to the above questions will allow an intelligent answer to your
question.


Well I am currently just looking at the TclHttpd stuff itself.

1) I am not sure what you mean by this but if it was just files then I
assume I could do whatever I wanted in the html.

2) Tml: Yes, this one throws me for a loop. Probably because #1 I am
not all that good at Tcl (though trying).

3). Packages: It looks like the html, and ncgi packages are being used.

Here is an example:

proc ::learn::header { title } {
Doc_Dynamic
set html [mypage::header $title]
return $html
}

That is set in a .tml file and in the index.tml file you have:

[mypage::header "TclHttpd Home Page"]

That wraps the "TclHttpd Home Page" in an <h2> tag (although I cannot
find out where this happens. If I want to change it and use CSS I have
to hard code the h2 element to something but that changes all the h2
elements. I would rather have an easy way to wrap that into CSS.

Granted...I am just trying to figure out TclHttpd and where it gets all
the files it uses to create even the default home page, so I may be
missing something.

My ignorance in all things Tcl is probably showing. : )

Robert

.



Relevant Pages

  • Re: TclHttpd: How to use CSS with it?
    ... Are you talking about just files on disk? ... Are you talking about tml files on disk? ... assume I could do whatever I wanted in the html. ... The html package in tcllib is currently missing any real support for css. ...
    (comp.lang.tcl)
  • Re: TclHttpd: How to use CSS with it?
    ... Are you talking about just files on disk? ... Are you talking about tml files on disk? ... If you are doing the generation in tcl code, what package are you using ... Just put them out there and use them in your HTML code. ...
    (comp.lang.tcl)
  • Re: TclHttpd: How to use CSS with it?
    ... Are you talking about tml files on disk? ... If you are doing the generation in tcl code, what package are you using ... Just put them out there and use them in your HTML code. ... Looks like custom code in the custom directory to me. ...
    (comp.lang.tcl)