HtmlFlow icon indicating copy to clipboard operation
HtmlFlow copied to clipboard

Enhance DynamicHtml view() factory with a pre building process

Open fmcarvalho opened this issue 5 years ago • 0 comments

HtmlTemplate instances can be processed before-hand with a mock model object (through a dynamic proxy) that intercepts all calls.

Thus, all static parts can be processed and stored on call to view(). Any, call to the model out of a dynamic scope it is intercepted by the mock object and throws an exception alerting for the illegal use.

This would avoid control of the first visit in HtmlVisitorCache.

fmcarvalho avatar Feb 18 '20 12:02 fmcarvalho