Web Connection
Import snippets befor expand
I have several templates with VFP expressions. Each template partially uses the same HTML code, which also contains VFP expressions. I want to write this code into separate snippets. These snippets need to be imported into the templates before the entire template is passed to wwResponse::ExpandTemplate. How is this possible?
You can use <%= RenderPartial() %> to embed nested templates.
Layout Pages, Content Pages and Partials
It works better with ExpandScript() than ExpandTemplate() but partials work reasonably well with ExpandTemplate().
+++ Rick ---