From 93d3916faec05987e549f0df58474312a591aa76 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 9 Sep 2006 21:56:58 +0000 Subject: Fixed #366. --- .../protected/pages/Advanced/MasterContent.page | 15 +++++++++++++++ .../protected/pages/Configurations/Templates1.page | 15 +++++++++++++++ 2 files changed, 30 insertions(+) (limited to 'demos/quickstart/protected/pages') diff --git a/demos/quickstart/protected/pages/Advanced/MasterContent.page b/demos/quickstart/protected/pages/Advanced/MasterContent.page index 2698f865..b7bcc9bb 100644 --- a/demos/quickstart/protected/pages/Advanced/MasterContent.page +++ b/demos/quickstart/protected/pages/Advanced/MasterContent.page @@ -39,4 +39,19 @@ Then, the contents are inserted into the master control according to the followi
alt="Master and Content" /> alt="Parent-child relationship between master and content" /> + ++Master is very similar to external templates which are introduced since version 3.0.5. A special include tag is used to include an external template file into a base template. +
++Both master and external template can be used to share common contents among pages. A master is a template control whose template contains the common content and whose class file contains the logic associated with the master. An external template, on the other hand, is a pure template file without any class files. +
++Therefore, use master control if the common content has to be associated with some logic, such as a page header with search box or login box. A master control allows you to specify how the common content should interact with end users. If you use external templates, you will have to put the needed logic in the page or control class who owns the base template. +
++Performancewise, external template is lighter than master as the latter is a self-contained control participating the page lifecycles, while the former is used only when the template is being parsed. +
+ \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Configurations/Templates1.page b/demos/quickstart/protected/pages/Configurations/Templates1.page index 3f2fcc5e..7acd92d0 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates1.page +++ b/demos/quickstart/protected/pages/Configurations/Templates1.page @@ -85,4 +85,19 @@ Comments INVISIBLE to end-users Note, template comments (by <!-- ... --!>) cannot appear in a property value. ++Since version 3.0.5, PRADO starts to support external template inclusion. This is accomplished via include tags, where external template files are specified in namespace format and their file name must be terminated as .tpl. +
++External templates will be inserted at the places where the include tags occur in the base template. +
++Note, nested template inclusion is not supported, i.e., you cannot have include tags in an external template. +
+ \ No newline at end of file -- cgit v1.2.3