Loading plugins/side_toc/side_toc.xqm +6 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
plugins/side_toc/side_toc.xqm +6 −2 Original line number Diff line number Diff line Loading @@ -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