contentbox.models.content.renderers

Class WidgetRenderer

lucee.Component
    extended by contentbox.models.content.renderers.BaseRenderer
      extended by contentbox.models.content.renderers.WidgetRenderer

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A content renderer that transforms {{{}}} into widget executions

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any widgetService


    • access = public
    • returntype = any
    • inject = id:widgetService@contentbox
    true false
    Method Summary
    void cb_onContentRendering([any event], [struct data])
         Execute on content translations for pages and blog entries.
    string getWidgetService()
    private void parseTagWidgets(any builder, any content)
         Parses content to find .
    private void parseTripleMustacheWidgets(any builder, any content)
         Parses content to find {{{.
    any setWidgetService(any widgetService)
    private any translateContent(any builder, [any content])
         Executes custom parsing rules on content.
     
    Methods inherited from class contentbox.models.content.renderers.BaseRenderer
    configure, getCb, getLog, multiStringReplace, setCb, setLog
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    widgetService

    property any widgetService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - id:widgetService@contentbox
    serializable - true

    Method Detail

    cb_onContentRendering

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

    Execute on content translations for pages and blog entries

    Parameters:
    event
    data

    getWidgetService

    public string getWidgetService()


    parseTagWidgets

    private void parseTagWidgets(any builder, any content)

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

    Parameters:
    builder - java.lang.StringBuilder that contains all the content to manipulate
    content - The content object that requested translation

    parseTripleMustacheWidgets

    private void parseTripleMustacheWidgets(any builder, any content)

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

    Parameters:
    builder - java.lang.StringBuilder that contains all the content to manipulate
    content - The content object that requested translation

    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 that contains all the content to manipulate
    content - The content object that requested translation