Hello all,
I have recently been asked couple times for framework integration with
h2o, at the current state h2o can you integrate to any system,
however, it doesn't contain the same awesomeness of original h2o
template style..
A community member asked about "dynamic filters", which i loved the
idea so much but haven't see a real value yet.
It could be a great starting point to build integration layers with
various frameworks with very simple API still
Dynamic filter
=============
A dynamic filter is a kind of filter that can match multiple type of
filters dynamically.
For example
------------------
Following filters are dynamic filters, since MVC routing usually
contain a very ugly hash (associative array), filters can make them
into named routes (Rails, Zend)
{{ 'Edit' | link_to_edit page }}
{{ 'Show me some love' | link_to_view page }}
{{ 'Delete them all' | link_to_delete page }}
H2o::addFilter('link_to_(.*)', 'link_to_dynamic_callback')
full example is here
http://gist.github.com/110961
I welcome everyone to join the discussion, about dynamic filters and
framework integration issues in general.