bemoko Sites
A bemoko site encapsulated all the resources, plugins & configuration that are used to deliver this site. You can use bemoko to deliver multiple sites and you'll learn how to extend and reuse existing sites using the site inheritance model and also learn how to organise sites into sub-sites to deliver variations on your site.
Where to Create Your Sites
You can create a site by creating a directory in a one of the site directories. By default the bemoko directory in the bemoko home directory is a site directory where you can place sites, e.g.
Windows
Linux, Mac OS or Unix
For example you could create a site at
and then access this site at
Your site can contain the following resources:
- site-config.xml Site configuration
- addonsAddons directory
- configCustom configuration
- pluginsPlugins, i.e. code
- uiUI Folder - HTML, CSS, JavaScript etc
- iphone
- root
Inheritance, Addons and Subsites
All sites can inherit from one or more parent sites. This means that all behaviour - i.e. site configuration, such as plugins, UI configuration, resources (HTML, CSS, JS, etc), is taken from these parent sites.
For example
<site parent="default.skin">
...
</site>
indicates that the site should inherit all the behaviour from the default.skin site.
Sub-sites
A site can contain other sub-sites (which can in turn contain other sub-sites). A sub-site inherits from the site that it is contained in.
You can create a sub-site, by creating a directory at the top level of your site and putting site resources in that site, just as you would with any normal site. For example if you have a site called mysite with a sub-directory called subsite then the subsite can be accessed as follows:
Addons
A site can include addons which allow to bundle up web site functionality and reuse across many sites. An addon is simply a site included or referenced in such a way that it can be reused.