How to extend Dust filters using jQuery

JavaScriptDust is a JavaScript templating engine designed to provide a clean separation between presentation and logic without sacrificing ease of use. It is particularly well-suited for asynchronous and streaming applications.

Inside its core, Dust offer a set of filters that can be used in specific scenarios like to force HTML escaping, but does not offer filters for all the possible scenarios.

So If you want to see how how you can easily extend Dust filters using jQuery, read How to extend Dust filters using jQuery in the Base22 Knowledge Wiki.

Note: Dust documentation makes the following assertion when you use filters: “all output values are escaped to avoid Cross Site Scripting (XSS) unless you use filters.”, but only applies to the default filters that brings Dust. If you create your own filters, they are still protected against XSS unless used in conjunction with the default Dust filters.

Hope you find this information useful!!