www.pieroland.net
Examples
This first example creates a website made of six pages.
You shall create a page_sources directory containing some text files (the pages content), naming them as defined in the following source code.
You shall create a page_sources directory containing some text files (the pages content), naming them as defined in the following source code.
website AllUsed
{
HomePages, HomeLinks
}
pageset HomePages
{
page Homepage source page_sources/home.txt
page Login source page_sources/login.txt
page Index source page_sources/index.txt
page Links source page_sources/links.txt
page Register source page_sources/register.txt
embed Login into Homepage right
embed Links into Homepage left
}
linkset HomeLinks
{
link Home from Index to Homepage
link Register from Login to Register
link Pieroland from Links to http://www.pieroland.net
link Google from Links to http://www.google.com
link Index from Homepage to Index
}
This examples creates the same website of the first one: more pagesets and linksets are specified, but they're unused.
website SomeUnused
{
HomePages, HomeLinks
}
pageset HomePages
{
page Homepage source page_sources/home.txt
page Login source page_sources/login.txt
page Index source page_sources/index.txt
page Links source page_sources/links.txt
page Register source page_sources/register.txt
embed Login into Homepage right
embed Links into Homepage left
}
pageset UnusedPages
{
page UnusedHome source /tmp/nofile.txt
page UnusedPage source /tmp/null.txt
embed UnusedPage into UnusedHome bottom
}
linkset HomeLinks
{
link Home from Index to Homepage
link Register from Login to Register
link Pieroland from Links to http://www.pieroland.net
link Google from Links to http://www.google.com
link Index from Homepage to Index
}
linkset UnusedLinks
{
link UnusedLink1 from UnusedHome to UnusedPage
}
Here a code which will create an empty website: both pageset and linkset are unused.
website Unused
{
HomePages, HomeLinks
}
pageset UnusedPages
{
page UnusedHome source /tmp/nofile.txt
page UnusedPage source /tmp/null.txt
embed UnusedPage into UnusedHome bottom
}
linkset UnusedLinks
{
link UnusedLink1 from UnusedHome to UnusedPage
}
And now a simple code to create a single page, without links.
Since it's not possible to define an empty pageset, you shall create a link from a not existing page ;-)
Since it's not possible to define an empty pageset, you shall create a link from a not existing page ;-)
website SinglePage
{
HomePages, HomeLinks
}
pageset HomePages
{
page Homepage source page_sources/home.txt
}
linkset HomeLinks
{
link NoLink from X to Y
}
