How to...
...build a site
Starting a new website it is best to choose one of the high level builder classes and inherit the new application class from it.from xpyth.xierpa.builders.sitebuilder import SiteBuilder class MyApp(CmsAjaxBuilder: pass
By adding this method as
def buildcontent(self):
self.text('Hello world')
Some of the available application builders
| SiteBuilder | ... |
| CmsBuilder | ... |
| CmsAjaxBuilder | ... |
| XierpaLiteBuilder | ... |
| GoogleAppsBuilder | ... |
Since we did choose to inherit from SiteBuilder we got the simplest site possible. If we choose from a higher level builder class, such as CmsAjaxBuilder (that generates most of an CMS-Ajax application) much more default behaviour is filled in.
from xpyth.xierpa.builders.cmsajaxbuilder import CmsAjaxBuilder class MyApp(CmsAjaxBuilder: pass
The applications draws a table based grid layout and calls methods to fill the cells. Each of these methods can be redefined by the inheriting application class.
