The PSO Dynamic Code Reorganizer extension is now available in our public subversion repository. This extension allows code to be moved and inserted into specified locations in the rendered page. This would commonly be in the global template to mark up location above the html or in the head but could be anywhere in the generated page.
For example:
<!-- insert-codeblock:top --> e.g. Mark a location with the name “top”
Only display code in context 1 and above and move to the location in the page marked up as top
<!-- codeblock:top-1 -->
Any code
<!-- end codeblock -->
Only show in context 0 (preview). do not move
<!-- codeblock:-0 -->
Any code
<!-- end codeblock -->
Show in any context but move to top location.
<!-- codeblock:top -->
Any code
<!-- end codeblock -->
The binary can be downloaded here
The sources can be browsed here.
-n