r0man/closure-templates-clj — Issue #1: Modify automatic underscore conversion of template params
Author: rathwell
Created: 2011-11-23 01:55:13+00:00
State: open

Just wondering, is there any chance of removing the call to inflections.core/underscore-keys in closure.templates.render/transform-data? The standard convention for param names with closure templates seems to be camel-case, and I have a number of existing templates using this convention. The only choices for this scenario are go through all the templates and convert all params to underscores, or use alter-var-root on inflections.core/underscore-keys as I'm currently doing (and I really don't want to do that). I understand that you would need to account for existing templates depending on that auto-transform, not sure what the answer is, just wondering if you were open to considering any options.

Thanks.