EDIT: oops, realized this isin't eco territory at all. Still, if I get anywhere itnteresting, I'll post updates.
Hi
Loving using eco for the latest project!
Was wondering if there are any common solutions for post processing templates. Many plugins are designed to progressively enhance server-generated markup, rather than doing so inline. Such enhancements include jquery linkify, bootstrap plugins, and many more.
Currently the only way to tie-in such post-processing functionality is by have a method called after every template render. This gets cumbersome quickly.
What if there were a third method in addition to escape() and safe(): after(). It could either be passed methods to add to a callback chain which would be called after the template has been rendered, or it could be expected to be redefined in-line and so called directly.
EDIT: oops, realized this isin't eco territory at all. Still, if I get anywhere itnteresting, I'll post updates.
Hi
Loving using eco for the latest project!
Was wondering if there are any common solutions for post processing templates. Many plugins are designed to progressively enhance server-generated markup, rather than doing so inline. Such enhancements include jquery linkify, bootstrap plugins, and many more.
Currently the only way to tie-in such post-processing functionality is by have a method called after every template render. This gets cumbersome quickly.
What if there were a third method in addition to escape() and safe(): after(). It could either be passed methods to add to a callback chain which would be called after the template has been rendered, or it could be expected to be redefined in-line and so called directly.
Thoughts?