#-- Renders a "book" XML to multiple HTML files. This is a rather complex stuff... check the product.html first. --> <#escape x as x?html> <@pp.dropOutputFile /> <#-- Calculating the prefix of output file names --> <#assign prefix = pp.sourceFileName> <#assign prefix = prefix?substring(0, prefix?last_index_of('.'))> <#assign prefix = prefix + '_'> <#-- Calculate the ordered list of HTML pages, used for the nav. bar. --> <#assign pages = pp.doc["//*[@ppFile != '']"]> <#-- Render the HTML pages --> <#recurse pp.doc> <#-- *********************************************************************************** Node handlers *********************************************************************************** --> <#macro book> <@pp.nestOutputFile name="${prefix}index.html"> <@Html title="${.node.@title}">
Table of Contents
Part Contents
<#recurse>
#macro> <#macro quote><#recurse>#macro> <#macro e> <#recurse><#t> #macro> <#macro mark> <#recurse><#t> #macro> <#macro @text> ${.node}<#t> #macro> <#-- *********************************************************************************** Other macros *********************************************************************************** --> <#macro Html title>