Module
ScriptFilter
        ScriptFilter ( script )
    
    A filter allowing to define scripts as filters. 
  | 
Method Summary
| Returns | Name | Description | 
|---|---|---|
String | _type() | The type of ejs object. For internal use only. | 
Object | cache(trueFalse) | Enable or disable caching of the filter | 
Object | cacheKey(key) | Sets the cache key. | 
Object | lang(lang) | Sets the script language. | 
Object | name(name) | Sets the filter name. | 
Object | params(p) | Sets parameters that will be applied to the script. Overwrites any existing params. | 
Object | script(s) | Sets the script. | 
Object | toJSON() | Returns the filter object. | 
Method Detail
cache
        Object cache ( trueFalse )
    
    Enable or disable caching of the filter 
  | 
cacheKey
        Object cacheKey ( key )
    
    Sets the cache key. 
  | 
lang
        Object lang ( lang )
    
    Sets the script language. 
  | 
name
        Object name ( name )
    
    Sets the filter name. 
  | 
params
        Object params ( p )
    
    Sets parameters that will be applied to the script.  Overwrites 
            any existing params. 
  | 
script
        Object script ( s )
    
    Sets the script. 
  |