Page Definition
The page definition hash have this structure:
{ nome:"name", descrizione:"description", img:"/../../image.png", imgsize:60, layout:"list", layoutoption:{}, option:{}, pageoption:{}, child:[] }
Name | Type | Description |
---|---|---|
nome | string | Page name |
descrizione | string | Page description |
img | string | Page icon url |
imgsize | int | Page icon size in px (0-60) |
layout | string | refer to Layout Definition |
layoutoption | hash | refer to Layout Definition |
option | hash | refer to Page Content Definition |
pageoption | hash | refer to Page Option Definition |
child | array | array of page definition |
Parsing logic
When parsing the page definition the option hash should be analyzed only if the child array is empty.
Because that mean its the last child of the tree.