Commit 8e77f842 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

cache side_toc

parent e7a2ca3e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -5,9 +5,13 @@ declare
%rest:GET
%output:method("html")
%rest:path("/{$project}/side_toc/{$routeDoc=.*\.xml}/toc.html")
function max.plugin.side_toc:toc2($project, $routeDoc){
function max.plugin.side_toc:toc($project, $routeDoc){
    let $toc := max.toc:getDocumentTOC($project, $routeDoc)
    let $currentUrl := request:uri()
    (:hidden link for "statification":)
    return <div class='side-toc'>{$toc}</div>
    return (<rest:response>
               <http:response status="200">
                 <http:header name="Expires" value="Tue, 22 Oct 2222 22:22:22 GMT"/>
               </http:response>
             </rest:response>, <div class='side-toc'>{$toc}</div>)
};
 No newline at end of file