Config 1.4: Templates

All webpage templates are placed under one top directory called Template.  You should defined it in config.js. E.g.

Template          "/home/user1/views"

Assume that a visitor is accessing URL:
http://WEBSITE/HANDLER/ROLE/TAG/COMPONENT?action=ACTION&query…

Then the specific template looked for is located at:

 Template
       /ROLE
             /COMPONENT
/ACTION.TAG
/action2.tag2
...
/component2
...
/role2
...

For example, if ROLE is public, TAG is html, COMPONENT is cart and ACTION is topics, the template will be

/home/user1/views/public/cart/topics.html

Comments are closed.