judofyr/temple — pull request #55 by hannesg (2011-12-17 09:34:35+00:00)
Title: Dispatch unknown

Hi

with this patch a dispatcher can opt-in to process unknown expressions.
This is important usefull:

- reporting errors when really only the known expression should be processed ( e.g. in generator ).
- finding certain expression even if they are enclosed in unknown expressions ( e.g. count _all_ newlines ).

TBD:

- Has anybody already implemented an on_unknown method to dispatch `[:unknown, ... ]`. maybe as a test? - would break.
- Maybe add prefixed unknown like "on_html_unknown" dispatches `[:html, xxx, ... ]` when xxx is not a known type?