All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.liftmodules.FoBoTB.snippet.FoBo.ScriptHelper.scala Maven / Gradle / Ivy

package net.liftmodules.FoBoTB.snippet.FoBo

import scala.xml.{ NodeSeq, Text }
import net.liftweb.util._
import net.liftweb.common._
import net.liftweb.http._
import net.liftweb._
import Helpers._
import net.liftmodules.FoBoTB.lib.{ScriptHelper=>sch}

/**
 * ==Script Helper Snippet Bootstrap v2.x==
 * 
 * This snippet class contains functions for common transform operations useful when working 
 * with the any toolkit.
 * '''Example''' Most of the functions in this class can be invoked using the following pattern. 
 * {{{ data-lift="FoBo.ScriptHelper.functionName?paramName=paramValue&...." }}} 
 * For more examples see the individual transform functions.
 * @since v1.0
 */
class ScriptHelper extends StatefulSnippet with Loggable {

  private lazy val sch = new sch()
  
  def dispatch = {
    case "registerLoadEventFactory" => registerLoadEventFactory
  }
  
  /**
   * This function register a load event factory script
   * 
   * '''Example'''  
   * {{{ 
   *     
   *       :
   *        
   *       
   *     
   * }}}
   * This load event factory script has to be registered ones before any activation can be loaded. 
   * 
   * '''Result:''' This example snippet invocation will result in the following script:
   * {{{
   *  
   *  
   * }}}
   * 
   */  
  def registerLoadEventFactory = {
    " *" #> sch.registerLoadEventFactory()
  }
 

  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy