-
-
Notifications
You must be signed in to change notification settings - Fork 6
DOM Templates
The DOM template repository is separately maintained at https://github.com/PhpGt/DomTemplate
A core concept of developing WebEngine applications is the use of the Document Object Model (DOM). WebEngine exposes the page's DOM to your code as described in DOM manipulation. The DOM implementation aims to be as standards compliant as possible, matching the APIs you'd expect to see in client side code.
Directly manipulating the DOM in your code can lead to tightly coupling the logic and view. As a powerful solution, binding data using custom elements and data attributes leads to highly readable, maintainable view files that are loosely coupled to the application logic.
// TODO: Break up large documents into named components.
// TODO: Reference imported components with .c-
class.
// TODO: Components can be referenced as a template by name, exactly like data-template
names (see below).
// TODO.
// TODO: bind function will clone the element for each row of data.
// TODO: text/html synonyms for innertext/innerhtml (attribute keys have to be lowercase).
// TODO: text, html, value treated specially... otherwise data is bound to the attribute specified.
// TODO.
// TODO: Curly avoided to prevent reinventing markup language, unavoidable when data is to be bound within attributes.
- Request-response lifecycle
- Running your application
- Project layout
- Application architecture
- Web servers
- URIs
- Page view
- Dynamic URIs and pages
- Headers and footers
- Page logic
- Protected globals
- User input
- Cookies
- Sessions
- DOM manipulation
- Custom HTML components
- DOM templates
- Binding data to the DOM
- Database
- Client side assets
- API Webservices
- Security
- Configuration
- Build system
- Coding styleguide