Logiweb

Logiweb Help: pyk user command

Home. Help index. Up.

Name

pyk - translate pyk source to Logiweb page and optionally submit it

Synopsis

pyk FILE [-url URL]

Description

Translate the pyk source text in FILE.pyk to a Logiweb vector (i.e. a Logiweb page).

If the -url option is absent: Store the vector locally in a file named 'page/FILE/vector/page.lgw', overwriting any previous contents of the page/FILE directory. When the -url option is absent, the local Logiweb server receives no notification.

If the -url option is present: Find the file directory DIR that corresponds to the given URL. Then store the vector at the disk location DIR/FILE/TIMESTAMP/vector/page.pyk where TIMESTAMP is a string that encodes the current time. Then make a symbolic link from DIR/FILE/latest to DIR/FILE/TIMESTAMP. Finaly notify the local Logiweb server about the new Logiweb page.

Usage without the -url option is good for development and debugging. Usage with the -url option is good for final submission.

Regardless of whether or not the -url option is present, all Logiweb pages referenced from the page being translated must have been submitted to Logiweb beforehand.

When the pyk compiler translates a pyk source into a Logiweb page, it generates, as a bonus, a number of html pages that allow a user to view the Logiweb page without having a Logiweb browser. These interlinked pages are called the 'crossbrowser' and are stored in page/FILE/ if -url is absent and DIR/FILE/TIMESTAMP/ is -url is present.

Examples

pyk base
Translate base.pyk and place the result in page/base/vector/page.lgw
pyk base -url http://logiweb.eu/mydir
Translate base.pyk and place the result in something like /var/www/html/mydir/base/GRD-2004-08-04-UTC-13-04-07-360696/vector/page.lgw.

Author

Written by Klaus Grue.

Copyright

Copyright (C) 2004 Klaus Grue
Available under GNU GPL
Logiweb comes with ABSOLUTELY NO WARRANTY

Klaus Grue, GRD-2004-08-04