<?xml version="1.0" encoding="utf-8"?>
<KScriptSetting>
  <Name>Kooboo JavaScript Extension</Name>
  <Description>kScript is a server side JavaScript engine that support full ES5 syntax, with an additional k object. Kooboo use kScript to write extensions like Job, Event Activity, Database operation, etc. You may embed KScript in your html file(view, layout, page) with a script engine=kscript tag,  or create external kScript file</Description>
  <Example><![CDATA[
    
    <script engine="kscript">
    // hello world.
    k.Response.Write("Hello World"); 
    
    // access to query string or form values. 
    var para = k.Request.key; 
    
    // get value from keyvalue store. 
    var value = k.keyValue.get("key"); 
    
    // insert data into dynamic table. 
    // all object can be accessible by kview engine. 
    var obj = {name:"mynae", email: "test@koobootemp.com"}; 
      
    var table = k.database.getTable("tablename"); 
    table.add(obj); 
   
    </script>
    
    <p k-content=obj.name>
    content will be replaced by obj.name
    </p>
     
    ]]></Example>
  <Props>

    <Property>
      <Name>Request</Name>
      <Description>Http Request collection</Description>
      <Type>Request</Type>
    </Property>
    <Property>
      <Name>Response</Name>
      <Description>The http response object that is used to set data into http resposne stream</Description>
      <Type>Response</Type>
    </Property>
    <Property>
      <Name>Session</Name>
      <Description>kScript session data</Description>
      <Type>Session</Type>
    </Property>
    <Property>
      <Name>Cookie</Name>
      <Description>cookie</Description>
      <Type>Cookie</Type>
    </Property>
    <Property>
      <Name>Site</Name>
      <Description>Kooboo website database</Description>
      <Type>site</Type>
    </Property>
    <Property>
      <Name>Url</Name>
      <Description>Url GET/POST functions</Description>
      <Type>Url</Type>
    </Property>
    <Property>
      <Name>File</Name>
      <Description>File IO operation</Description>
      <Type>FileIO</Type>
    </Property>
 
    <Property>
      <Name>KeyValue</Name>
      <Description>keyValue</Description>
      <Type>keyValue</Type>
    </Property>
    <Property>
      <Name>Database</Name>
      <Description>database</Description>
      <Type>Database</Type>
    </Property>
  
    <Property>
      <Name>DataContext</Name>
      <Description>the dataContext of kView engine, the tag attribute based kooboo render engine. You can explicit set value into dataContext or any global variables defined within JavaScript is accessible by dataContext as well.</Description>
      <Type>DataContext</Type>
    </Property>
    <Property>
      <Name>Mail</Name>
      <Description>Send emails</Description>
      <Type>Mail</Type>
    </Property>

    <Property>
      <Name>Security</Name>
      <Description>Hash, Encrypt, Decrypt functions</Description>
      <Type>Security</Type>
    </Property>
 

  <Property>
      <Name>Info</Name>
      <Description>Access to current request information</Description>
      <Type>Info</Type>
    </Property>
  </Props> 
   
  
</KScriptSetting>