hayamiki_plugin.anubis 1.03 KB
/*
 * Created by PyramIDE.
 * User: フランスのトトロ aka (David RENÉ) 
 * Date: 18/01/2020
 * Time: 21:02
 * © David RENÉ
 */

read tools/basis.anubis
read app/app_loggers.anubis
read system/logger.anubis
read xlib/web/plugin/plugin.anubis
read xlib/web/types/making_a_web_site.anubis
read xlib/web/types/web_session.anubis
read controller.anubis

define Maybe(HTML_Partial_Content)
  plugin_get_typed_content
  (
    SQLite3DataBase db,
    WEB_Session     _session,
    String          type
  )=
  println("plugin_get_typed_content for HYAMIKI type "+type);
  if type       = "LEFT_MENU"     then  failure
  else if type  = "TOOLBAR"       then  failure
  else if type  = "CONTROL_PANEL" then  failure
  else
    failure
.

global define WEB_Plugin
  hayamiki_web_plugin_1_19_lib
  =
  println("hayamiki_web_plugin_1_19_lib; entry");
  register_loggers(logTrace, logTrace);
  web_plugin(
    "HAYAMIKI",
    "BASE",
    "1.19",
    _Int_to_ISO_8601_datetime(to_Int(__TIME__)),
    plugin_get_controller,
    plugin_get_typed_content
  )
.