# This file is part of NIT ( http://www.nitlanguage.org ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # HTML templates used by Nitdoc to generate API documentation # Pages are assembled using `Template` module doc_template import template # Full Nitdoc page template class TplNitdocPage super Template var head: TplHead writable var body_attrs = new Array[TagAttribute] # attributes for body tag element var topmenu: TplTopMenu writable var sidebar: nullable TplSidebar writable var content: Streamable writable var footer: nullable TplFooter writable var scripts = new Array[TplScript] # js scripts appended to body init do end redef fun rendering do add "" add "
" add head add "" add "" add topmenu if footer != null then add "