A layout should be able to specify a section, which is a Pushup API and syntax that allows pages to, for example, set the HTML <title> element or similar varying across different pages.
This will need some design iteration, but should look roughly like:
<title>^(Section("title"))</title>
Note the use of an explicit expression (transition symbol followed by balanced parens ^(...))
If a page did not reference the section, it would render as
A layout should be able to specify a section, which is a Pushup API and syntax that allows pages to, for example, set the HTML
<title>
element or similar varying across different pages.This will need some design iteration, but should look roughly like:
Note the use of an explicit expression (transition symbol followed by balanced parens
^(...)
)If a page did not reference the section, it would render as
The layout could alternately do something like
For a default value.
But a page could write something like:
and get
Within the { } the HTML parser would be in effect.