Packaging tcl packages.



I'm writing tclets which are mostly structured as package requires and glue.
This structure seems to cause a problem: to be up-loadable by browsers a tclet
has to be a monolithic block containing all necessary code. This raises two
questions:

Does a tclet have to be a self-contained monolith? My experiments suggest so:
two separate tclet up-loads are isolated from one another and can't share code,
which seems sensible with respect to safety. I also haven't figured out how to
the the tcl equivalent to the Java codebase attribute (although I probably
don't understand what codebase is supposed to do).

The second question is: assuming a monolithic structure, is there a tool around
that can create the monolith? It doesn't seem like too difficult a shell
script to write, but dealing with browser-resident errors that result from
subtle monolithifying issues isn't my idea of a good time.


.



Relevant Pages

  • Re: Packaging tcl packages.
    ... This structure seems to cause a problem: to be up-loadable by browsers a tclet has to be a monolithic block containing all necessary code. ... that can create the monolith? ...
    (comp.lang.tcl)
  • Re: Helloworld - basic tclet - is not working. Ideas?
    ... Ben Moir wrote: ... > I am trying a very basic tclet, ... As far as win2k and newer browsers ... the tcl plug-in is currently being worked on in order to run ...
    (comp.lang.tcl)