What is a Template Object?
Template Objects are inserted in the DOM. Template Objects have a tag.
- HTML Tag like style, div, …
- Special Tags: none, break
- “None” objects, are only for organisation, this does not generate any object in the DOM.
- “Break” Tags are special, which get replaced by the “<pagebreak></pagebreak>” tag, which is used in mpdf to get an page break.
- Query + Repeated field
- Inner HTML
- Sort Order
Template Object could have Subobjects
Template Object could have Attributes.
Example: onlick, style, ….
TODO: THIS IS A GLOBAL OPTION!!
The Option filter_xxxx allows you to use constant placeholders in html template object, eg to use the same query with different results.
SELECT * FROM table WHERE id = ##id##
Will replace ##id## in query with 1.
SELECT * FROM table WHERE id = 1