Re: [Cppcms-users] Update "generic_filter" patch
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-11-20 05:54:03
|
Just to make sure,have you seen that current CppCMS 1.2 solution: http://cppcms.com/wikipp/en/page/cppcms_1x_templates_comm#Default.Escape.Filter.Block I remember I liked your idea and implemented it. But also added more generic "filter" block so you can modify the behavior withing specific scope. Note I see that you separate the url and default filter which is indeed a very good idea, also having default filter on view level can be useful as well - not on some scope inside a template block. Also the patch clearly was not build against trunk version of CppCMS where 1.2 is now. I suggest to merge the modifications with 1.2 that already contains support of <% filter .. %> block that does major part of job. Probably extend it with url_filter support and add filter on view level. Thanks, Artyom On Fri, Nov 18, 2016 at 8:39 PM, Joerg Sonnenberger <jo...@be...> wrote: > Hi Artyom, > this is a slightly extended version of a patch I send you a while ago. > This includes an actual test case now. The goal is to make it easier to > use the template framework for non-HTML output. For this purpose, a view > can use the new arguments to override the default filter. There is one > issue in that the static parts of a URL expression can't be quoted, > which is difficult to work-around with more intrusive code changes. As I > generally don't use the URL tag in non-HTML output, it doesn't matter to > me. > > Joerg > > ------------------------------------------------------------------------------ > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |