RE: TWiki cookbook / licences

"Anton van Straaten" <[email protected]>
Newsgroups gmane.lisp.scheme.plt.schematics
Message-ID <[email protected]>
I've changed all the converted cookbook pages to use the source code
inclusion mechanism described below, so the speed problem is gone.  I've
documented the new mechanism in IncludingSourceCode.

I've also created an AuthorGuide topic, and a new TOC.  I've added links to
all of this from the Cookbook home page.

I still need to:

* add a link to licensing info to the footer for the twiki page template
* remove the need to use an account to edit topics

I'll probably do that tomorrow.

Anton


> > --- Anton van Straaten <[email protected]> wrote:
> > > The one problem I'm aware of at the moment is that
> > > the code snippet
> > > inclusion mechanism I used seems to slow certain
> > > things down dramatically
> >
> > Yeah, I'm experiencing problems with it as well.  I
> > think it is fairly critical to speed this up.
>
> I've come up with a solution to this which I've implemented on the
> WebProgramming topic, and it works fine speed-wise.
>
> Instead of using included attachments for the source code, I've created a
> topic for each source file, which contains the raw source.  In this case,
> the topics are Web1Scm, Web2Scm, Web3Scm.  Including a topic seems to work
> plenty fast.
>
> Assuming there doesn't turn out to be a better way, then I think to make
> this manageable, it may make sense to create a separate twiki "web" for
> source code topics.  For example, if we call that web "Scm", then
> you would
> include source code using a name like Scm.Web1, i.e. the syntax is:
> %INCLUDE{"Scm.Web1"}%
>
> This would have the advantage of grouping all the source code in a single
> directory, without being mixed with other stuff.  A simple
> copy+rename would
> convert them all to ordinary .scm files for packaging in a zip.
>
> I'll convert the other pages to this system shortly.  We can always change
> it again if we find a better way.





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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.