Dear Otto,
This is the basic structure for a HTML page:
<html><head></head><body></body></html>So our
default.view using mod_harbour is going to be:
default.view
- Code: Select all Expand view
{{View("head")}}
{{View("body")}}
As mod_harbour is able to build
"nested" views, now we need to define
head.view and
body.viewhead.view
- Code: Select all Expand view
<html>
<head>
</head>
body.view
- Code: Select all Expand view
<body>
</body>
</html>
From mod_harbour we do:
View( "default" )
And mod_harbour will put all the parts together. Now lets say we want to have a menu and a browse:
body.view
- Code: Select all Expand view
<body>
{{View("menu")}}
{{View("browse")}}
</body>
</html>
Now we create a
menu.view and a
browse.viewThis way all the complexity of a HTML page (lots of tags, very easy to make a mistake) is structured in small and easy to manage views
This is the beauty and the power of using mod_harbour
Views engine