Edit

kc3-lang/kc3/test/httpd/app/views/doc_view.kc3

Branch :

  • test/httpd/app/views/doc_view.kc3
  • ## kc3
    ## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
    ##
    ## Permission is hereby granted to use this software granted the above
    ## copyright notice and this permission paragraph are included in all
    ## copies and substantial portions of this software.
    ##
    ## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
    ## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
    ## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
    ## THIS SOFTWARE.
    
    require EKC3
    
    defmodule DocView do
    
      def template_menu =
        EKC3.load("app/templates/doc/menu.html.ekc3")
      
      def template_show =
        EKC3.load("app/templates/doc/show.html.ekc3")
    
      def render_menu = fn (index) {
        EKC3.render(DocView.template_menu)
      }
    
      def render_show = fn (menu, html) {
        EKC3.render(DocView.template_show)
      }
    
    end