contentbox.model.content.renderers

Class WidgetRenderer

railo-context.Component
        extended by contentbox.model.content.renderers.WidgetRenderer
Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  

    A content renderer that transforms {{{}}} into widget executions

    Property Summary
    type property default serializable required
    any log


    • inject = logbox:logger:{this}
    true false
    any widgetService


    • inject = id:widgetService@cb
    true false
    Method Summary
    void cb_onContentRendering([any event], [struct interceptData])
         Execute on content translations for pages and blog entries.
    void configure()
    string getLog()
    string getWidgetService()
    private void parseTagWidgets(any builder)
         Parses content to find .
    private void parseTripleMustacheWidgets(any builder)
         Parses content to find {{{.
    any setLog(any log)
    any setWidgetService(any widgetService)
    private any translateContent(any builder, [any content])
         Executes custom parsing rules on content.
     
    Methods inherited from class railo-context.Component
    None

    Property Detail

    log

    property any log

    Attributes:
    required - false
    inject - logbox:logger:{this}
    serializable - true

    widgetService

    property any widgetService

    Attributes:
    required - false
    inject - id:widgetService@cb
    serializable - true

    Method Detail

    cb_onContentRendering

    public void cb_onContentRendering([any event], [struct interceptData])

    Execute on content translations for pages and blog entries

    Parameters:
    event
    interceptData

    configure

    public void configure()


    getLog

    public string getLog()


    getWidgetService

    public string getWidgetService()


    parseTagWidgets

    private void parseTagWidgets(any builder)

    Parses content to find ... tags, and renders the associated widget

    Parameters:
    builder - {java.lang.StringBuilder}

    parseTripleMustacheWidgets

    private void parseTripleMustacheWidgets(any builder)

    Parses content to find {{{...}}} syntax, and renders the associated widget

    Parameters:
    builder - {java.lang.StringBuilder}

    setLog

    public any setLog(any log)

    Parameters:
    log

    setWidgetService

    public any setWidgetService(any widgetService)

    Parameters:
    widgetService

    translateContent

    private any translateContent(any builder, [any content])

    Executes custom parsing rules on content

    Parameters:
    builder - {java.lang.StringBuilder}
    content - {String}