Index: openacs-4/packages/acs-templating/www/doc/requirements.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/requirements.adp,v diff -u -r1.2.2.4 -r1.2.2.5 --- openacs-4/packages/acs-templating/www/doc/requirements.adp 9 Jun 2016 13:03:12 -0000 1.2.2.4 +++ openacs-4/packages/acs-templating/www/doc/requirements.adp 5 Jul 2016 12:14:22 -0000 1.2.2.5 @@ -15,11 +15,11 @@
acs-templating
-.
-
+System version 0.5. It has also been called Karl's Templates,
+the Dynamic Publishing System (DPS), and Stencil. The official
+package name for the system is now
+acs-templating
+.
The template system is designed to be used by two classes of users: programmers and designers. In bulding a web site, programmers are generally responsible for defining and implementing -the application logic of the site, while designers are more -responsible for the presentation. Generally speaking, the -application logic generates data for the presentation to display to -the user. The template system must provide mechanisms that supports -both of these tasks and allows the designer and programmer to work -seperately, but for their work to be combined at runtime into -something that the user sees as a single page.
+the application logic of the site, while designers are +more responsible for the presentation. Generally speaking, +the application logic generates data for the presentation to +display to the user. The template system must provide mechanisms +that supports both of these tasks and allows the designer and +programmer to work seperately, but for their work to be combined at +runtime into something that the user sees as a single page.Thus, pages are naturally split into two parts. The logic part executes application logic and generates data, and the -presentation part that specifies the layout of the page and -so on.
+presentation part that specifies the layout of the page +and so on.What is needed is:
Alternate scenario: Judy Designer is familiar with the template system. She starts directly from a defined page contract, -so Jane Programmer doesn't need to write the draft template.
+so Jane Programmer doesn't need to write the draft +template.Publishers should be able to change the default presentation of any module using a single methodology with minimal exposure to code.
-10.5 Programmer's APIIt must be easy to use/integrate the templating system with any +10.5 Programmer's API
It must be easy to use/integrate the templating system with any application. This implies a stable, simple, and comprehensive API for programmers to use when writing or converting modules.
Programmers must be able to publish a page's data sources, so -that a graphic designer knows what data sources are available.
10.5.2 Page Contract ImplementationProgrammers must be able to generate and populate the page +Publishing
Programmers must be able to publish a page's data sources, +so that a graphic designer knows what data sources are +available.
10.5.2 Page Contract ImplementationProgrammers must be able to generate and populate the page properties they promise. This includes page properties of types: onevalue, onerow, multirow, onelist, and multilist.
-It must be simple for graphic designers to create and maintain +10.10 Graphic Designer's API
It must be simple for graphic designers to create and maintain templates that include dynamic data, and other templates. This requires a stable, simple, and comprehensive API for graphic designers to use when creating the layout pages for a site.
Much like the "mail merge" feature of a word processor, template -authors must use special tags to position each piece of dynamic -data within the layout. Each template is associated with a data -dictionary that lists all available variables.
10.10.2 Use of ComponentsTo speed development and ensure consistency of design, template -authors are encouraged to assemble pages from distinct component -templates that may be recycled in different contexts. One -typical practice is to build a "master" template for an entire -section of a site, with a common header, footer and sidebar layout. -For each page request, the "content" template is incorporated -dynamically into a specified area of the master template, usually a -table cell.
Another common practice is to build small reusable templates +Substitution
Much like the "mail merge" feature of a word +processor, template authors must use special tags to position each +piece of dynamic data within the layout. Each template is +associated with a data dictionary that lists all available +variables.
10.10.2 Use of ComponentsTo speed development and ensure consistency of design, template +authors are encouraged to assemble pages from distinct +component templates that may be recycled in different +contexts. One typical practice is to build a "master" +template for an entire section of a site, with a common header, +footer and sidebar layout. For each page request, the +"content" template is incorporated dynamically into a +specified area of the master template, usually a table cell.
Another common practice is to build small reusable templates that may be included in other templates as logical components. This -may be useful for common "widgets" such as search boxes or lists of -related links, as well as for building configurable portal pages -where users may assemble different types of content to their -liking.
10.10.3 Inter-Template CommunicationTemplate authors need a simple mechanism for declaring +may be useful for common "widgets" such as search boxes +or lists of related links, as well as for building configurable +portal pages where users may assemble different types of content to +their liking.
10.10.3 Inter-Template CommunicationTemplate authors need a simple mechanism for declaring properties within templates. The most common use of such properties is for configuring elements of an enclosing master template, such as the title, navigation links, and whether to include a search box.
10.10.4 Conditional InsertionDesigners often need to tailor the layout depending on the specific data being presented. For example, when presenting a list of library books that a user has checked out, the designer might want to highlight the overdue ones in red. For this, designers must -have the ability to write simple program logic (Note: We run the -risk of inventing our own language here, we must be +have the ability to write simple program logic (Note: We run +the risk of inventing our own language here, we must be careful).
Dynamic pages often present lists of values or records, each of @@ -227,5 +230,5 @@