dejan/auto_html: Collection of filters that transform plain text into HTML code.
24-Jan-2025 33
AutoHtml uses concepts found in "Pipes and Filters" processing design pattern:
Filter - transforms an input. In AutoHtml context, this is any object that does the transformation through #call(String) method. Filter options should be passed in initializer. AutoHtml provides some filters already, ie Link, Image, Markdown, etc.
Pipeline - a composition of filters that transforms input by passing the output of one filter as input for the next filter in line. In AutoHtml context, this is the AutoHtml::Pipeline class. Since the same interface (method #call) is used to pass input, we can say that Pipeline is just another Filter, which means it can be used as a building block for other Pipelines, in a mix with other filters.
dejan/auto_html: Collection of filters that transform plain text into HTML code. #ruby #rubydeveloper #rubyonrails #dejan/auto_html: #Collection #filters #transform #plain #code. #code. https://rubyonrails.ba/link/dejan-auto_html-collection-of-filters-that-transform-plain-text-into-html-code